Body.idl 405 B

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