Interface Body
interface Body {
body: ReadableStream<Uint8Array>;
bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
bytes(): Promise<Uint8Array>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
body: ReadableStream<Uint8Array>;
bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
bytes(): Promise<Uint8Array>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
Hierarchy
- Body (View Summary)
Methods
arrayBuffer
- arrayBuffer(): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
blob
bytes
- bytes(): Promise<Uint8Array>
Returns Promise<Uint8Array>
MDN Reference