8 releases
✓ Uses Rust 2018 edition
0.2.1 | Feb 10, 2019 |
---|---|
0.2.0 | Jan 10, 2019 |
0.1.5 | Jan 9, 2019 |
0.1.4 | Dec 22, 2018 |
#70 in HTTP client
50 downloads per month
Used in 1 crate
7KB
91 lines
hyper-socks2
Reborn of SOCKS4/5 connector for Hyper library
License
hyper-socks under either of:
at your option.
lib.rs
:
The reborn of the SOCKS4/5 connector for Hyper library
Example
use hyper::{client::Client, Body};
use hyper_socks2::Proxy;
# use hyper_socks2::Error;
# fn hidden() -> Result<(), Error> {
let proxy = Proxy::Socks5 {
addrs: "your.socks5.proxy:1080",
auth: None,
};
// with TLS support
let proxy = proxy.with_tls()?;
let client = Client::builder().build::<_, Body>(proxy);
# Ok(())
# }
Features
tls
feature enabled by default. It adds TLS support usinghyper-tls
.
Dependencies
~4MB
~70K SLoC