From v0.14 to v1 difficulties using Client #3462
Replies: 2 comments
-
Not a maintainer or contributor though, so take what i say with a grain of salt. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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.1
but now I'm stuck upgrading the below code:Can you help me understand what to use instead of
client::Client
now?Should I use
hyper_util::client::legacy::Client
?Why the word
legacy
in the name?Or should I use all the code in https://github.com/hyperium/hyper/blob/master/examples/client.rs?
Beta Was this translation helpful? Give feedback.
All reactions