Struct hyper_socks::Socks4HttpConnector [] [src]

pub struct Socks4HttpConnector {
    // some fields omitted
}

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

Methods

impl Socks4HttpConnector

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

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

Trait Implementations

impl NetworkConnector for Socks4HttpConnector

type Stream = HttpStream

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

Derived Implementations

impl Debug for Socks4HttpConnector

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