(&mut self, req: LambdaEvent<LambdaRequest>)
| 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 |
nothing calls this directly
no test coverage detected