From v0.14 to v1 difficulties using Client #3462
Closed
frederikhors
started this conversation in
General
Replies: 2 comments
Not a maintainer or contributor though, so take what i say with a grain of salt. |
0 replies
Probably! That's the pooling, connecting client that works just like the previous
It's the "old" way. It exists to help people upgrade, it works exactly how you're used to. But I think there's a "better"
You certainly can. The examples are up-to-date. What you see there are code using hyper's connection-based types. Is that what you want? To manage connections yourself? If not, you may want to stick with |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Coming from:
I switched to
hyper 1.0.1but now I'm stuck upgrading the below code:Can you help me understand what to use instead of
client::Clientnow?Should I use
hyper_util::client::legacy::Client?Why the word
legacyin the name?Or should I use all the code in https://github.com/hyperium/hyper/blob/master/examples/client.rs?
All reactions