Skip to content

HttpRequest

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

readonly body: Uint8Array<ArrayBufferLike> | null

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

Raw bytes of the request body (undefined for GET / HEAD).


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

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


readonly method: HttpMethod

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


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

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

Path parameters extracted from /users/:id patterns.


readonly path: string

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


readonly query: Readonly<Record<string, string | string[] | undefined>>

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