mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
LibWeb: Add FormData support to XHR
This adds FormData support to XHR so that it can post multipart/form-data encoded data.
This commit is contained in:
parent
5df4d66d91
commit
1120011de4
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/kennethmyhra
Commit: 1120011de4
Pull-request: https://github.com/SerenityOS/serenity/pull/18169
Reviewed-by: https://github.com/linusg ✅
5 changed files with 24 additions and 7 deletions
|
@ -1,9 +1,10 @@
|
|||
#import <FileAPI/Blob.idl>
|
||||
#import <Streams/ReadableStream.idl>
|
||||
#import <URL/URLSearchParams.idl>
|
||||
#import <XHR/FormData.idl>
|
||||
|
||||
// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
|
||||
typedef (Blob or BufferSource or URLSearchParams or USVString) XMLHttpRequestBodyInit;
|
||||
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) XMLHttpRequestBodyInit;
|
||||
|
||||
// https://fetch.spec.whatwg.org/#bodyinit
|
||||
typedef (ReadableStream or XMLHttpRequestBodyInit) BodyInit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue