Skip to content

HttpRequestLike

Defined in: types.ts:168

Minimal express-compatible request passed to HttpRouterLike handlers.

optional body?: unknown

Defined in: types.ts:173

Parsed request body for POST routes. Express/koa/http all populate it when the request carries one.


headers: Record<string, string | string[] | undefined>

Defined in: types.ts:171


protocol: string

Defined in: types.ts:169


query: Record<string, unknown>

Defined in: types.ts:170

get(header): string | undefined

Defined in: types.ts:174

string

string | undefined