HttpRequest
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/http/types.ts:9
Properties
Section titled “Properties”
readonlybody:Uint8Array<ArrayBufferLike> |null
Defined in: src/http/types.ts:17
Raw bytes of the request body (undefined for GET / HEAD).
headers
Section titled “headers”
readonlyheaders:Readonly<Record<string,string>>
Defined in: src/http/types.ts:12
method
Section titled “method”
readonlymethod:HttpMethod
Defined in: src/http/types.ts:10
params
Section titled “params”
readonlyparams:Readonly<Record<string,string>>
Defined in: src/http/types.ts:15
Path parameters extracted from /users/:id patterns.
readonlypath:string
Defined in: src/http/types.ts:11
readonlyquery:Readonly<Record<string,string|string[] |undefined>>
Defined in: src/http/types.ts:13
remoteAddress?
Section titled “remoteAddress?”
readonlyoptionalremoteAddress?:string
Defined in: src/http/types.ts:26
Optional remote IP address of the client as the server saw it
(NOT the value of x-forwarded-for — that’s a header the client
can spoof unless a trusted proxy stripped + replaced it). Backends
SHOULD populate this from the underlying socket peer; consumers
that need to trust a forwarded header MUST do so explicitly (see
IpAllowlist’s getClientIp option).