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

Method call

lambda-http/src/lib.rs:199–207  ·  view source on GitHub ↗
(&mut self, req: LambdaEvent<LambdaRequest>)

Source from the content-addressed store, hash-verified

197 }
198
199 fn call(&mut self, req: LambdaEvent<LambdaRequest>) -> Self::Future {
200 let LambdaEvent { payload, context } = req;
201 let request_origin = payload.request_origin();
202 let mut event: Request = payload.into();
203 update_xray_trace_id_header(event.headers_mut(), &context);
204 let fut = Box::pin(self.service.call(event.with_lambda_context(context)));
205
206 TransformResponse::Request(request_origin, fut)
207 }
208}
209
210/// Starts the Lambda Rust runtime and begins polling for events on the [Lambda

Callers

nothing calls this directly

Calls 4

request_originMethod · 0.80
with_lambda_contextMethod · 0.80
RequestClass · 0.50

Tested by

no test coverage detected