Constructors
constructor
- new Body(body?: any, opts?: undefined | object): Body
-
Parameters
-
Optional body: any
-
Optional opts: undefined | object
Properties
body
body: ReadableStream
bodyUsed
bodyUsed: boolean
size
size: number
timeout
timeout: number
Methods
arrayBuffer
- arrayBuffer(): Promise<ArrayBuffer>
-
Returns Promise<ArrayBuffer>
blob
-
Returns Promise<Buffer>
buffer
- buffer(): Promise<Buffer>
-
Returns Promise<Buffer>
json
-
Returns Promise<any>
text
-
Returns Promise<string>
textConverted
- textConverted(): Promise<string>
-
Returns Promise<string>