Skip to main content

Module request

Module request 

Source
Expand description

The incoming Request.

One object carrying the HTTP message and the conveniences an application actually reaches for — input(), file(), cookie(), bearer_token(), expects_json().

Parsing is lazy but synchronous. The body arrives already buffered, and the query string, cookies and body are each parsed on first access and cached in a OnceLock. A request that only reads a header never runs the form parser; a request that reads input() twice runs it once.

Structs§

ClientIp
The client’s address, put into the request’s extensions by the server.
Request
An inbound HTTP request.
RequestBuilder
A fluent Request builder.