in lambda-http/src/ext.rs [116:178]
fn query_string_parameters(&self) -> StrMap;
/// Configures instance with query string parameters under #[cfg(test)] configurations
///
/// This is intended for use in mock testing contexts.
fn with_query_string_parameters<Q>(self, parameters: Q) -> Self
where
Q: Into<StrMap>;
/// Return pre-extracted path parameters, parameter provided in url placeholders
/// `/foo/{bar}/baz/{boom}`,
/// associated with the API gateway request. No path parameters
/// will yield an empty `StrMap`
///
/// These will always be empty for ALB triggered requests
fn path_parameters(&self) -> StrMap;
/// Configures instance with path parameters under #[cfg(test)] configurations
///
/// This is intended for use in mock testing contexts.
fn with_path_parameters<P>(self, parameters: P) -> Self
where
P: Into<StrMap>;
/// Return [stage variables](https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html)
/// associated with the API gateway request. No stage parameters
/// will yield an empty `StrMap`
///
/// These will always be empty for ALB triggered requests
fn stage_variables(&self) -> StrMap;
/// Configures instance with stage variables under #[cfg(test)] configurations
///
/// This is intended for use in mock testing contexts.
#[cfg(test)]
fn with_stage_variables<V>(self, variables: V) -> Self
where
V: Into<StrMap>;
/// Return request context data assocaited with the ALB or API gateway request
fn request_context(&self) -> RequestContext;
/// Return the Result of a payload parsed into a serde Deserializeable
/// type
///
/// Currently only `application/x-www-form-urlencoded`
/// and `application/json` flavors of content type
/// are supported
///
/// A [PayloadError](enum.PayloadError.html) will be returned for undeserializable
/// payloads. If no body is provided, `Ok(None)` will be returned.
fn payload<D>(&self) -> Result<Option<D>, PayloadError>
where
for<'de> D: Deserialize<'de>;
/// Return the Lambda function context associated with the request
fn lambda_context(&self) -> Context;
/// Configures instance with lambda context
fn with_lambda_context(self, context: Context) -> Self;
}
impl RequestExt for http::Request<Body> {