跳转到内容
简体中文

HttpResponse

此内容尚不支持你的语言。

HttpResponse = object

Defined in: src/http/types.ts:29

readonly optional body?: string | Uint8Array | ReadableStream<Uint8Array> | object | null

Defined in: src/http/types.ts:38

Body. A string or plain object is marshalled (JSON) with a Content-Type; a Uint8Array or web ReadableStream is sent as raw bytes (default application/octet-stream). Streams are one-shot, so the caching middleware must not wrap a streaming response.


readonly optional contentType?: string

Defined in: src/http/types.ts:40

Forced content-type. Overrides whatever the marshaller picks.


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

Defined in: src/http/types.ts:31


readonly status: number

Defined in: src/http/types.ts:30