Is there a user friendly @rustlang async HTTP client out there?
-
Show this thread
-
Replying to @louispilfold @rustlang
I've used Reqwest before, it's a higher level client built on Hyper. I remember struggling a bit with the async stuff though. I'm basically staying away from rust until async/await is "done"
1 reply 0 retweets 3 likes -
I'm not the very knowledgeable but it seems like the async await syntax is just sugar? Now that Futures are stable I _think_ we may be there (so long as you're happy with and_then, map etc) Hyper without Reqwest actually looks simpler than with?https://github.com/hyperium/hyper/blob/master/examples/client_json.rs …
1 reply 0 retweets 0 likes -
Of course I'm probably totally wrong
2 replies 0 retweets 0 likes -
Replying to @louispilfold @rustlang
I don't believe you're wrong :) But what I mean is for all the libraries to switch to standard futures, stabilize, build on it, make it pretty and ergonomic. And then I can swoop in and reap all the benefits
2 replies 0 retweets 2 likes
Yeah, you can use compat to convert between the two worlds but it won’t be as nice as when the ecosystem moves over
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.