summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Body.idl
blob: 80085c43111491104afc9ac4e0f9f47e94598f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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();
};