Constructors
constructor
- new BodyMixin(body?, options?): BodyMixin
Parameters
Optional
body: BodyInitOptional
options: {
size?: number;
}
Properties
Readonly
body
Readonly
bodyUsed
bodyUsed: boolean
Readonly
size
size: number
Methods
arrayBuffer
- arrayBuffer(): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
blob
- blob(): Promise<Blob>
Returns Promise<Blob>
buffer
- buffer(): Promise<Buffer>
Returns Promise<Buffer>
formData
- formData(): Promise<FormData>
Returns Promise<FormData>
json
- json(): Promise<unknown>
Returns Promise<unknown>
text
- text(): Promise<string>
Returns Promise<string>
Deprecated
Use
body.arrayBuffer()
instead.