12 lines
405 B
Text
12 lines
405 B
Text
#import <Streams/ReadableStream.idl>
|
|
|
|
// 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();
|
|
[NewObject] Promise<FormData> formData();
|
|
[NewObject] Promise<any> json();
|
|
[NewObject] Promise<USVString> text();
|
|
};
|