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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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 doingreq.lambda_context()
.