/* * Copyright (c) 2023, Kenneth Myhra * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::HTML { struct SerializedFormData { String boundary; ByteBuffer serialized_data; }; WebIDL::ExceptionOr create_entry(JS::Realm& realm, String const& name, Variant, String> const& value, Optional const& filename = {}); WebIDL::ExceptionOr>> construct_entry_list(JS::Realm&, HTMLFormElement&); ErrorOr serialize_to_multipart_form_data(Vector const& entry_list); }