Are there any request body extractors that implement std::io::Read? #2084
-
I can't seem to identify any https://docs.rs/axum/latest/axum/extract/index.html#request-body-extractors that implement https://doc.rust-lang.org/stable/std/io/trait.Read.html. I am wondering if I'm missing something? If in fact none of them implement std::io::Read I would love to understand why? I'm trying to pass a request body to the tar crate directly in memory. I know I can do it via a file read/write, and I know I can do it in memory using std::io::Cursor. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Jul 12, 2023
Replies: 1 comment
-
Nope. Bodies are async streams whereas std::io::Read is sync. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
phish3y
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope. Bodies are async streams whereas std::io::Read is sync.