-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axum middleware mismatch on types #771
Comments
The solution that worked for me was to use this pub async fn mw_sample_2(req: axum::extract::Request, next: Next) -> impl IntoResponse {
...
} To get to the let context = req
.extensions()
.get::<lambda_http::request::RequestContext>(); |
I think this can be closed |
|
@calavera Good idea - I'd be happy to add an example. |
PR submitted: #785 |
I am upgrading from lambda_http 0.8 to 0.9.0
As a consequence, I also upgraded to axum 0.7.3`
I have a compile error on axum middleware:
Here is a minimal example:
It gives me this error:
If I change the code to this, the error goes away (as expected)
In my middleware, I need the
lambda_http::Request
.Before the upgrade, the code looked like this:
Am I missing something?
The text was updated successfully, but these errors were encountered: