Expand description
Types and traits for extracting data from requests.
See Accessing Un-modelled data a comprehensive overview.
The following implementations exist:
- Tuples up to size 8, extracting each component.
Option<T>
:Some(T)
if extractingT
is successful,None
otherwise.Result<T, T::Rejection>
:Ok(T)
if extractingT
is successful,Err(T::Rejection)
otherwise.
when T: FromParts
.
Modules§
- connect_
info - The
ConnectInfo
struct is included inhttp::Request
s whenIntoMakeServiceWithConnectInfo
is used.ConnectInfo
’sFromParts
implementation allows it to be extracted from thehttp::Request
. - extension
- Extension types.
- lambda
aws-lambda
- The [
lambda_http
] types included inhttp::Request
s whenLambdaHandler
is used. Each are given aFromParts
implementation for easy use within handlers. - request_
id request-id
- Request IDs
Traits§
- From
Parts - Provides a protocol aware extraction from a
Request
. This borrows theParts
, in contrast toFromRequest
which consumes the entirehttp::Request
including the body. - From
Request - Provides a protocol aware extraction from a
Request
. This consumes theRequest
, including the body, in contrast toFromParts
which borrows theParts
.