-
handler function : async fn report<C: ServerContext>(State(ctx): State<Arc<C>>) -> Result<String, Error> {
...
} |
Beta Was this translation helpful? Give feedback.
Answered by
calavera
Feb 5, 2024
Replies: 1 comment
-
You need to extract it from the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
holicc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to extract it from the
Request
object. Here's an example: https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/examples/http-axum-middleware/src/main.rs#L18-L24