Repository navigation
Access Lambda context with lambda_http #436
|
Hey :) at first thanks for your great work and invest in the Rust ecosystem. :) Now my question: is it possible to access the Lambda context (part of Kind regards, Florian |
Answered by
nmoutschen
Mar 1, 2022
Replies: 1 comment 1 reply
|
Hey @floric ! It's definitively possible, but I do realise we might not have documented this in the best way. The Lambda context is stored as a Request extension. You can use the |
1 reply
Answer selected by
floric
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @floric !
It's definitively possible, but I do realise we might not have documented this in the best way.
The Lambda context is stored as a Request extension. You can use the
RequestExttrait, which will expose the Lambda context by doingreq.lambda_context().