HttpRequestLike
Defined in: types.ts:168
Minimal express-compatible request passed to HttpRouterLike handlers.
Properties
Section titled “Properties”
optionalbody?:unknown
Defined in: types.ts:173
Parsed request body for POST routes. Express/koa/http all populate it when the request carries one.
headers
Section titled “headers”headers:
Record<string,string|string[] |undefined>
Defined in: types.ts:171
protocol
Section titled “protocol”protocol:
string
Defined in: types.ts:169
query:
Record<string,unknown>
Defined in: types.ts:170
Methods
Section titled “Methods”get(
header):string|undefined
Defined in: types.ts:174
Parameters
Section titled “Parameters”header
Section titled “header”string
Returns
Section titled “Returns”string | undefined