mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement multipart/form-data encoding algorithm
This commit is contained in:
parent
69e8216f2c
commit
84722ae2ef
Notes:
sideshowbarker
2024-07-17 06:28:38 +09:00
Author: https://github.com/kennethmyhra
Commit: 84722ae2ef
Pull-request: https://github.com/SerenityOS/serenity/pull/18169
Reviewed-by: https://github.com/linusg ✅
3 changed files with 90 additions and 0 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue