Replies: 1 comment
-
You can't copy the request since the body is an async stream and request extensions don't support cloning. See https://github.com/tokio-rs/axum/blob/main/examples/consume-body-in-extractor-or-middleware/src/main.rs for a way to deal with that if you need to consume the request body in middleware. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi guys.
how to copy the request after extract the request?
Beta Was this translation helpful? Give feedback.
All reactions