mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement formData()
for "multipart/form-data"
This commit is contained in:
parent
7ae46bf8b7
commit
8b097b38dd
Notes:
github-actions[bot]
2025-01-20 23:34:52 +00:00
Author: https://github.com/F3n67u
Commit: 8b097b38dd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3036
Reviewed-by: https://github.com/konradekk
Reviewed-by: https://github.com/tcl3 ✅
27 changed files with 1356 additions and 4 deletions
|
@ -70,6 +70,11 @@ WebIDL::ExceptionOr<GC::Ref<FormData>> FormData::create(JS::Realm& realm, Vector
|
|||
return construct_impl(realm, move(list));
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<FormData>> FormData::create(JS::Realm& realm, Vector<FormDataEntry> entry_list)
|
||||
{
|
||||
return construct_impl(realm, move(entry_list));
|
||||
}
|
||||
|
||||
FormData::FormData(JS::Realm& realm, Vector<FormDataEntry> entry_list)
|
||||
: PlatformObject(realm)
|
||||
, m_entry_list(move(entry_list))
|
||||
|
|
|
@ -28,6 +28,7 @@ public:
|
|||
static WebIDL::ExceptionOr<GC::Ref<FormData>> construct_impl(JS::Realm&, Vector<FormDataEntry> entry_list);
|
||||
|
||||
static WebIDL::ExceptionOr<GC::Ref<FormData>> create(JS::Realm&, Vector<DOMURL::QueryParam> entry_list);
|
||||
static WebIDL::ExceptionOr<GC::Ref<FormData>> create(JS::Realm&, Vector<FormDataEntry> entry_list);
|
||||
|
||||
WebIDL::ExceptionOr<void> append(String const& name, String const& value);
|
||||
WebIDL::ExceptionOr<void> append(String const& name, GC::Ref<FileAPI::Blob> const& blob_value, Optional<String> const& filename = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue