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 extractingTis successful,Noneotherwise.Result<T, T::Rejection>:Ok(T)if extractingTis successful,Err(T::Rejection)otherwise.
when T: FromParts.
Modules§
- connect_
info - The
ConnectInfostruct is included inhttp::Requests whenIntoMakeServiceWithConnectInfois used.ConnectInfo’sFromPartsimplementation allows it to be extracted from thehttp::Request. - extension
- Extension types.
- lambda
aws-lambda - The [
lambda_http] types included inhttp::Requests whenLambdaHandleris used. Each are given aFromPartsimplementation 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 toFromRequestwhich consumes the entirehttp::Requestincluding the body. - From
Request - Provides a protocol aware extraction from a
Request. This consumes theRequest, including the body, in contrast toFromPartswhich borrows theParts.