MCPcopy Create free account
hub / github.com/aws/aws-lambda-rust-runtime / map_req_ext

Function map_req_ext

lambda-http/src/ext/extensions.rs:368–376  ·  view source on GitHub ↗
(req: http::Request<B>, f: F)

Source from the content-addressed store, hash-verified

366}
367
368fn map_req_ext<B, F>(req: http::Request<B>, f: F) -> http::Request<B>
369where
370 F: FnOnce(http::Extensions) -> http::Extensions,
371{
372 let (mut parts, body) = req.into_parts();
373 parts.extensions = (f)(parts.extensions);
374
375 http::Request::from_parts(parts, body)
376}
377
378impl<B> RequestExt for http::Request<B> {
379 fn raw_http_path(&self) -> &str {

Callers 6

with_raw_http_pathMethod · 0.85
with_path_parametersMethod · 0.85
with_stage_variablesMethod · 0.85
with_request_contextMethod · 0.85
with_lambda_contextMethod · 0.85

Calls 1

into_partsMethod · 0.80

Tested by

no test coverage detected