pub fn lambda_to_hyper_request(
lambda_req: Request,
) -> Result<Request<MapErr<Full<Bytes>, fn(Infallible) -> Error>>>Expand description
Convert lambda_http::Request to hyper::Request
This enables delegation to SessionMcpHandler by converting Lambda’s request format
to the hyper format expected by the framework. All headers are preserved, and Lambda
authorizer context (if present) is extracted and injected as x-authorizer-* headers.
§Authorizer Context
If the request includes API Gateway authorizer context, fields are extracted and
added as headers with the x-authorizer- prefix. This makes authorizer data
available to middleware via RequestContext.metadata.
Field names are sanitized (lowercase, alphanumeric + dash/underscore only). Invalid header names/values are skipped gracefully.