Skip to content

Use Axum and LambdaRequest (and context) at the same time #634

Closed Answered by greenwoodcm
mirumirumi asked this question in Q&A
Discussion options

You must be logged in to vote

the http variant of the runtime hides the lambda event from the developer, that's kind of what it's intended to do. instead of receiving a lambda request, you receive an http::Request, which is normally what code written with a more traditional web server framework expects. so you've got two choices here - either you log what you need out of the passed-in http::Request, or you dip down into the lower level (non-http) runtime and do the translation to an http::Request yourself after logging, if that's the type you ultimately need.

does that help? does one of those options sound like it'll work for you?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by greenwoodcm
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