Expand description
Commonly used as the type of extractor or response.
Modules
cookie
cookie
Cookie related types.
Typed HTTP Headers
sse
sse
Server-Sent Events (SSE) types.
websocket
websocket
Websocket extractor and response.
Structs
Compress
compression
Compress the response body with the specified algorithm and set the
Content-Encoding
header.CsrfToken
csrf
A CSRF Token for the next request.
CsrfVerifier
csrf
A verifier for CSRF Token.
An extractor that can extract data from the request extension.
Field
multipart
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.
Multipart
multipart
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.
TempFile
tempfile
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_content_type
method.Returned by
with_header
method.Returned by
with_header
method.Xml
xml
XML extractor and response.
Enums
CompressionAlgo
compression
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.