use lambda_http::{ http::{response::Builder, Method, StatusCode}, service_fn, Body, Error, Request, RequestExt, Response, }; use serde_json::json; #[tokio::main] async fn main() -> Result<(), Error> { lambda_http::run(service_fn(func)).await?; Ok(()) } async fn func(request: Request) -> Result<Response<Body>, Error> { let unmatch = not_found(); match request.uri().path() { "/name" => match request