Skip to content

HttpResponse

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

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

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

Body — if string or JSON object, the marshaller adds Content-Type.


readonly optional contentType?: string

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

Forced content-type. Overrides whatever the marshaller picks.


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

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


readonly status: number

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