Struct hyper_socks::Socks4HttpsConnector [] [src]

pub struct Socks4HttpsConnector<S> {
    // some fields omitted
}

A connector that will produce protected, proxied HTTP streams using SSL.

Methods

impl<S: Ssl> Socks4HttpsConnector<S>

fn new<T: ToSocketAddrs>(proxy: T, userid: &str, ssl: S) -> Result<Self>

Creates a new Socks4HttpsConnector which will connect to the specified proxy with the specified userid, and use the provided SSL implementation to encrypt the resulting stream.

Trait Implementations

impl<S: Ssl> NetworkConnector for Socks4HttpsConnector<S>

type Stream = HttpsStream<S::Stream>

fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>

Derived Implementations

impl<S: Debug> Debug for Socks4HttpsConnector<S>

fn fmt(&self, __arg_0: &mut Formatter) -> Result