hyper-client-io-wizard
Documentation | Crates.io | Repository
Why hyper-client-io-wizard?
This project's goal is to provide a simple and straightforward connection builder for hyper v1 HTTP client hyper::client::conn.
Features
Currently supports following configurations:
- Direct connections (similar to hyper_util::client::legacy)
- Socks5 proxy (based on async-socks5 crate)
- TLS connections (based on tokio-rustls crate)
- Customizable DNS resolving (based on hickory-resolver crate)
Usage
See the examples
folder in the repository for more examples, i.e. primitive-curl
command line utility.
let io = resolver_setup
.system
.connection_setup?
.connect_timeout
.socks5_proxy_setup
.tls_setup
.await?
.native_roots?
.enable_all_versions
.establish
.await?;
let = new
.handshake
.await?;
spawn;
let response = request_sender.send_request.await?;
...
License
This project is licensed under MIT
.