ladybird/Userland/Libraries/LibWeb/Fetch/BodyInit.idl
2022-09-22 21:01:13 +01:00

11 lines
512 B
Text

#import <FileAPI/Blob.idl>
#import <Streams/ReadableStream.idl>
#import <URL/URLSearchParams.idl>
// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
typedef (Blob or BufferSource or URLSearchParams or USVString) XMLHttpRequestBodyInit;
// https://fetch.spec.whatwg.org/#bodyinit
// FIXME: IDLParser doesn't resolve nested unions properly
// typedef (ReadableStream or XMLHttpRequestBodyInit) BodyInit;
typedef (ReadableStream or Blob or BufferSource or URLSearchParams or USVString) BodyInit;