Upgrading from hyper v0 to hyper v1 still using the legacy::Client
#3544
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment
-
Can you help break down what issue you stumbled on? |
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
-
I wrote a simple S3 client with axum v0.6 and hyper v0 using the hyper's (now deprecated/legacy Client).
I don't want to use
reqwest
or others because I need very simple and not complex features.Now I need to update to axum v0.7 and hyper v1: I'm a bit lost.
This is the code that works with hyper v0 | The same on Rust Playground
This is the code that doesn't work with hyper v1 | The same on Rust Playground
Since I'm losing my mind, actually, I've already lost it, can you please help me understand how to change it for the new hyper version?
The most important thing for me is that the file is streamed and not copied into memory, both for uploading and downloading.
The code with both v0 (commented) and v1 (the second link above):
Beta Was this translation helpful? Give feedback.
All reactions