Body.idl 459 B

1234567891011121314
  1. #import <FileAPI/Blob.idl>
  2. #import <Streams/ReadableStream.idl>
  3. #import <XHR/FormData.idl>
  4. // https://fetch.spec.whatwg.org/#body
  5. interface mixin Body {
  6. readonly attribute ReadableStream? body;
  7. readonly attribute boolean bodyUsed;
  8. [NewObject] Promise<ArrayBuffer> arrayBuffer();
  9. [NewObject] Promise<Blob> blob();
  10. [NewObject] Promise<FormData> formData();
  11. [NewObject] Promise<any> json();
  12. [NewObject] Promise<USVString> text();
  13. };