Type Definition lambda_http::Request

source ·
pub type Request = Request<Body>;
Expand description

Type alias for http::Requests with a fixed Body type

Trait Implementations§

source§

impl<B> RequestExt for Request<B>

source§

fn raw_http_path(&self) -> &str

Return the raw http path for a request without any stage information.
source§

fn with_raw_http_path<S>(self, path: S) -> Selfwhere S: Into<String>,

Configures instance with the raw http path.
source§

fn query_string_parameters(&self) -> QueryMap

Return pre-parsed HTTP query string parameters, parameters provided after the ? portion of a URL, associated with the API gateway request. Read more
source§

fn query_string_parameters_ref(&self) -> Option<&QueryMap>

Return pre-parsed HTTP query string parameters, parameters provided after the ? portion of a URL, associated with the API gateway request. Read more
source§

fn with_query_string_parameters<Q>(self, parameters: Q) -> Selfwhere Q: Into<QueryMap>,

Configures instance with query string parameters Read more
source§

fn path_parameters(&self) -> QueryMap

Return pre-extracted path parameters, parameter provided in URL placeholders /foo/{bar}/baz/{qux}, associated with the API gateway request. Having no path parameters will yield an empty QueryMap. Read more
source§

fn path_parameters_ref(&self) -> Option<&QueryMap>

Return pre-extracted path parameters, parameter provided in URL placeholders /foo/{bar}/baz/{qux}, associated with the API gateway request. Having no path parameters will yield None. Read more
source§

fn with_path_parameters<P>(self, parameters: P) -> Selfwhere P: Into<QueryMap>,

Configures instance with path parameters Read more
source§

fn stage_variables(&self) -> QueryMap

Return stage variables associated with the API gateway request. Having no stage parameters will yield an empty QueryMap. Read more
source§

fn stage_variables_ref(&self) -> Option<&QueryMap>

Return stage variables associated with the API gateway request. Having no stage parameters will yield None. Read more
source§

fn request_context(&self) -> RequestContext

Return request context data associated with the ALB or API gateway request
source§

fn request_context_ref(&self) -> Option<&RequestContext>

Return a reference to the request context data associated with the ALB or API gateway request
source§

fn with_request_context(self, context: RequestContext) -> Self

Configures instance with request context Read more
source§

fn lambda_context(&self) -> Context

Return Lambda function context data associated with the request
source§

fn lambda_context_ref(&self) -> Option<&Context>

Return a reference to the Lambda function context data associated with the request
source§

fn with_lambda_context(self, context: Context) -> Self

Configures instance with lambda context
source§

impl RequestPayloadExt for Request<Body>

source§

fn payload<D>(&self) -> Result<Option<D>, PayloadError>where for<'de> D: Deserialize<'de>,

Return the result of a payload parsed into a type that implements serde::Deserialize Read more