Skip to main content

lambda_to_axum_request

Function lambda_to_axum_request 

Source
pub fn lambda_to_axum_request(event: Request) -> Result<Request<Body>, Error>
Expand description

Convert a Lambda HTTP request to an axum request.

  • Strips any client-supplied x-authorizer-* headers (anti-spoofing)
  • Injects authorizer context from Lambda requestContext as x-authorizer-* headers
  • Preserves all other headers, method, URI, body