logo

Module poem::web

source · []
Expand description

Commonly used as the type of extractor or response.

Modules

cookiecookie
Cookie related types.
Typed HTTP Headers
ssesse
Server-Sent Events (SSE) types.
websocketwebsocket
Websocket extractor and response.

Structs

Accept header, defined in RFC7231
Compresscompression
Compress the response body with the specified algorithm and set the Content-Encoding header.
A CSRF Token for the next request.
A verifier for CSRF Token.
An extractor that can extract data from the request extension.
Fieldmultipart
A single field in a multipart stream.
An extractor that can deserialize some type from query string or body.
An HTML response.
JSON extractor and response.
Local server’s address.
Multipartmultipart
An extractor that parses multipart/form-data requests commonly used with file uploads.
An extractor that will get captures from the URL and parse them using serde.
An extractor that can deserialize some type from query string.
An extractor that can extracts the real ip from request headers
A redirect response.
Remote peer’s address.
The body parameter type of FromRequest::from_request method.
An extractor for responding static files.
TempFiletempfile
An extractor that extracts the body and writes the contents to a temporary file.
An extractor that extracts a typed header value.
Returned by with_body method.
Returned by with_header method.
Returned by with_header method.
Xmlxml
XML extractor and response.

Enums

CompressionAlgocompression
The compression algorithms.
A response for static file extractor.

Traits

Represents an type that can be extract from requests.
Represents a type that can convert into response.