Responseclass
_body is null while unread, a promise while arrayBuffer() reads it, then the cached ArrayBuffer The request's timeout keeps running until a read completes
On this page
_body is null while unread, a promise while arrayBuffer() reads it, then the cached ArrayBuffer The request's timeout keeps running until a read completes
import { Response } from 'detritus-rest';Constructor
Properties
readonly
Accessors
Methods
arrayBuffer()
async src/response.ts:120arrayBuffer(): Promise<ArrayBuffer>The body is read once and cached, the returned ArrayBuffer is shared with clones so copy it before mutating
buffer()
async src/response.ts:135buffer(): Promise<Buffer<ArrayBufferLike>>A view into the cached body (see arrayBuffer()), don't mutate it, copy it first
clone()
src/response.ts:153clone(): Responsejson()
async src/response.ts:140json(): Promise<unknown>text()
async src/response.ts:148text(): Promise<string>toString()
src/response.ts:169toString(): string