Struct hyper_socks::Socks5HttpConnector
[−]
[src]
pub struct Socks5HttpConnector { /* fields omitted */ }
A connector that will produce HttpStreams proxied over a SOCKS5 server.
Methods
impl Socks5HttpConnector
[src]
fn new<T: ToSocketAddrs>(proxy: T) -> Result<Socks5HttpConnector>
Creates a new Socks5HttpConnector
which will connect to the specified
proxy.
Trait Implementations
impl Debug for Socks5HttpConnector
[src]
impl NetworkConnector for Socks5HttpConnector
[src]
type Stream = HttpStream
Type of Stream
to create
fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<HttpStream>
Connect to a remote address.