2023-11-08 11:04:56 -07:00
|
|
|
#import <FileAPI/Blob.idl>
|
2022-09-25 19:30:24 +01:00
|
|
|
#import <Streams/ReadableStream.idl>
|
2023-11-08 11:04:56 -07:00
|
|
|
#import <XHR/FormData.idl>
|
2022-09-25 19:30:24 +01:00
|
|
|
|
|
|
|
|
// https://fetch.spec.whatwg.org/#body
|
|
|
|
|
interface mixin Body {
|
|
|
|
|
readonly attribute ReadableStream? body;
|
|
|
|
|
readonly attribute boolean bodyUsed;
|
|
|
|
|
[NewObject] Promise<ArrayBuffer> arrayBuffer();
|
|
|
|
|
[NewObject] Promise<Blob> blob();
|
2024-05-19 12:29:26 +01:00
|
|
|
[NewObject] Promise<Uint8Array> bytes();
|
2022-09-25 19:30:24 +01:00
|
|
|
[NewObject] Promise<FormData> formData();
|
|
|
|
|
[NewObject] Promise<any> json();
|
|
|
|
|
[NewObject] Promise<USVString> text();
|
|
|
|
|
};
|