(req: LambdaEvent<LambdaRequest>)
| 164 | } |
| 165 | |
| 166 | fn event_to_request(req: LambdaEvent<LambdaRequest>) -> Request { |
| 167 | let LambdaEvent { payload, context } = req; |
| 168 | let mut event: Request = payload.into(); |
| 169 | update_xray_trace_id_header(event.headers_mut(), &context); |
| 170 | event.with_lambda_context(context) |
| 171 | } |
| 172 | |
| 173 | /// Runs the Lambda runtime with a handler that returns **streaming** HTTP |
| 174 | /// responses. |
nothing calls this directly
no test coverage detected