Expand description
Built-in Extractors types and traits.
Structs§
- Cookie
cookie
Representation of an HTTP cookie. - CookieJar
cookie
A collection of cookies that tracks its modifications. - Cookies
cookie
Extracts the cookies from the request. - Event
sse
Event Message - Form
form
Extracts from-data from the body of a request. - Extracts a header from the headers of a request.
- Json
json
Extracts JSON data from the body of a request, or responds a JSON data to response. - Limits
limits
Extracts the limits settings. - MultipartLimits
multipart
Various limits on incoming data - Params
params
Extracts params from the path of a URL. - Query
query
Extracts the data from the query string of a URL. - Gets real ip remote addr from request headers.
- RouteInfo
params
Current route information. - Session
session
A session for the current request. - Sse
sse
Server-Sent Event - State
state
Extracts state from the extensions of a request. - StateError
state
AState
error. - WebSocket
websocket
ThenWebSocket
provides the API for creating and managing aWebSocket
connection, as well as for sending and receiving data on the connection. - WebSocketConfig
websocket
The configuration for WebSocket connection.
Enums§
- CookiesError
cookie
Rejects a error thats reading or parsing the cookies. - Rejects with an error when header extraction fails.
- Message
websocket
An enum representing the various forms of a WebSocket message. - MultipartError
multipart
Form-data Error - ParamsError
params
Rejects a parsing error. - Rejects with an error when the body of request extraction fails.
- SameSite
cookie
TheSameSite
cookie attribute. - WebSocketError
websocket
Rejects with an error whenWebSocket
extraction fails.
Traits§
- An interface for processing the payload data of the HTTP request.
Type Aliases§
- CookieKey
cookie
and (cookie-signed
orcookie-private
)A cryptographic master key for use withSigned
and/orPrivate
jars. - Multipart
multipart
Extracts the data from the multipart body of a request. - WebSocketStream
websocket
A wrapper around an underlying raw stream which implements theWebSocket
protocol.