-
SummaryI'm working on a project at https://git.sr.ht/~latex/streamlist Compiler error
Info is in this commit on the axum version0.7.7 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is working for me: pub fn my_middleware<B>(req: Request<B>) -> Request<B> {
let (mut parts, body) = req.into_parts();
let uri = &parts.uri;
[...]
Request::from_parts(parts, body)
} It seems that you're trying to read the uri from the response and not from the request. |
Beta Was this translation helpful? Give feedback.
Could read the uri before the async move block?
like: