Skip to content

Access Lambda context with lambda_http #436

Answered by nmoutschen
floric asked this question in Q&A
Discussion options

You must be logged in to vote

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 RequestExt trait, which will expose the Lambda context by doing req.lambda_context().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@floric
Comment options

Answer selected by floric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants