mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Implement multipart/form-data encoding algorithm
This commit is contained in:
committed by
Linus Groh
parent
69e8216f2c
commit
84722ae2ef
@@ -10,7 +10,13 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
struct SerializedFormData {
|
||||
String boundary;
|
||||
ByteBuffer serialized_data;
|
||||
};
|
||||
|
||||
WebIDL::ExceptionOr<XHR::FormDataEntry> create_entry(JS::Realm& realm, String const& name, Variant<JS::NonnullGCPtr<FileAPI::Blob>, String> const& value, Optional<String> const& filename = {});
|
||||
WebIDL::ExceptionOr<Optional<Vector<XHR::FormDataEntry>>> construct_entry_list(JS::Realm&, HTMLFormElement&);
|
||||
ErrorOr<SerializedFormData> serialize_to_multipart_form_data(Vector<XHR::FormDataEntry> const& entry_list);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user