ladybird/Userland/Libraries/LibWeb/Fetch/Body.idl
Linus Groh 5ad6283331 LibWeb: Implement '5.3. Body mixin' from the Fetch API :^)
This will be used to share functionality between Request and Response.
2022-09-27 14:56:17 +01:00

13 lines
405 B
Plaintext

#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();
};