Skip to content

HTTP 响应

Properties ​

body ​

readonly body: Uint8Array


headers ​

readonly headers: Readonly<Record<string, string>>


status ​

readonly status: number

Methods ​

arrayBuffer() ​

arrayBuffer(): ArrayBuffer

Returns ​

ArrayBuffer


json() ​

json<T>(): T

Type Parameters ​

T ​

T = unknown

Returns ​

T


text() ​

text(): string

Returns ​

string

Released under the MIT License with love.