-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: replace hyper::Client
with reqwest::Client
#1362
Conversation
In hyper, the high-level Client implementation is going to be removed in the next major release. The current client lacks built-in support for HTTP proxies, and we want to ditch hyper-proxy as it is unmaintained and its webpki dependency has known security issues.
Oops, this was temporary and not meant to be commited. The CLI can be used to test the proxy support.
Codecov Report
@@ Coverage Diff @@
## main #1362 +/- ##
=======================================
- Coverage 60.7% 60.2% -0.6%
=======================================
Files 274 274
Lines 26864 27199 +335
=======================================
+ Hits 16322 16386 +64
- Misses 10542 10813 +271
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Love all that deleted code 🥇 |
Remove ugly turbofish syntax. The changes only affect internal methods, so these stylistics do not matter a lot.
This solves the problem with using type alias as a constructor.
Co-authored-by: Romain Ruetschi <[email protected]>
…1362) * rpc: replace hyper::Client with reqwest::Client In hyper, the high-level Client implementation is going to be removed in the next major release. The current client lacks built-in support for HTTP proxies, and we want to ditch hyper-proxy as it is unmaintained and its webpki dependency has known security issues. * Remove the proxy_client example Oops, this was temporary and not meant to be commited. The CLI can be used to test the proxy support. * Bump async-tungstenite version to 0.23 * rpc: fix proxy configuration in http::Builder * rpc: use argument type to select the dialog Remove ugly turbofish syntax. The changes only affect internal methods, so these stylistics do not matter a lot. * rpc: restore LatestDialog as re-export This solves the problem with using type alias as a constructor. * Changelog entries for informalsystems#1362 * rpc: prune dependencies for http-client feature * rpc: demote http to dev-dependencies * Small rewording in changelog for informalsystems#1342 (informalsystems#1362) Co-authored-by: Romain Ruetschi <[email protected]> --------- Co-authored-by: Romain Ruetschi <[email protected]>
Closes #1342
In
hyper
, the high-levelClient
implementation is going to be removed in the next major release. The current client lacks built-in support for HTTP proxies, and we want to ditchhyper-proxy
as it is unmaintained and itswebpki
dependency has a known security issue..changelog/