Constructors
constructor
- new BodyMixin(body?: BodyInit, options?: { size?: number }): 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<ArrayBufferLike>>
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.