MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

examples/http-raw-path/src/main.rs:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[tokio::main]
4async 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
12async fn func(event: Request) -> Result<impl IntoResponse, Error> {
13 let res = format!("The raw path for this request is: {}", event.raw_http_path())

Callers

nothing calls this directly

Calls 2

init_default_subscriberFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected