Crate hyper_socks2
source ·Expand description
The reborn of the SOCKS4/5 connector for Hyper library
Example
use hyper::{client::Client, Body};
use hyper_socks2::Proxy;
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);
Features
tls
feature enabled by default. It adds TLS support usinghyper-tls
.
Structs
An authentication information
A future with ready TCP stream
An error returned from the TLS implementation.
A Connector for the
https
scheme.Enums
A SOCKS4/5 proxy information and TCP connector