Struct hyper_socks::Socks5HttpConnector [] [src]

pub struct Socks5HttpConnector {
    // some fields omitted
}

A connector that will produce HttpStreams proxied over a SOCKS5 server.

Methods

impl Socks5HttpConnector

fn new<T: ToSocketAddrs>(proxy: T) -> Result<Socks5HttpConnector>

Creates a new Socks4HttpConnector which will connect to the specified proxy with the specified userid.

Trait Implementations

impl NetworkConnector for Socks5HttpConnector

type Stream = HttpStream

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

Derived Implementations

impl Debug for Socks5HttpConnector

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