interface Body
Properties #
readonly
#body: ReadableStream<Uint8Array> | null
A simple getter used to expose a ReadableStream
of the body contents.
Methods #
#arrayBuffer(): Promise<ArrayBuffer>
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with an ArrayBuffer
.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a Blob
.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a Uint8Array
.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a FormData
object.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with the result of parsing the body text as JSON.