()
| 2 | |
| 3 | #[tokio::main] |
| 4 | async fn main() -> Result<(), Error> { |
| 5 | // required to enable CloudWatch error logging by the runtime |
| 6 | tracing::init_default_subscriber(); |
| 7 | |
| 8 | lambda_http::run(service_fn(func)).await?; |
| 9 | Ok(()) |
| 10 | } |
| 11 | |
| 12 | async fn func(event: Request) -> Result<impl IntoResponse, Error> { |
| 13 | let res = format!("The raw path for this request is: {}", event.raw_http_path()) |
nothing calls this directly
no test coverage detected