Properties Jump to heading
Jump to headingbody: ReadableStream<Uint8Array> | nullA simple getter used to expose a ReadableStream of the body contents.
Jump to headingbodyUsed: booleanStores a Boolean that declares whether the body has been used in a
response yet.
Methods Jump to heading
Jump to headingarrayBuffer(): Promise<ArrayBuffer>Takes a Response stream and reads it to completion. It returns a promise
that resolves with an ArrayBuffer.
Jump to headingblob(): Promise<Blob>Takes a Response stream and reads it to completion. It returns a promise
that resolves with a Blob.
Jump to headingbytes(): Promise<Uint8Array>Takes a Response stream and reads it to completion. It returns a promise
that resolves with a Uint8Array.
Jump to headingformData(): Promise<FormData>Takes a Response stream and reads it to completion. It returns a promise
that resolves with a FormData object.
Jump to headingjson(): Promise<any>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.
Jump to headingtext(): Promise<string>Takes a Response stream and reads it to completion. It returns a promise
that resolves with a USVString (text).