Struct hyper_socks::Socks4HttpConnector
[−]
[src]
pub struct Socks4HttpConnector { /* fields omitted */ }
A connector that will produce HttpStreams proxied over a SOCKS4 server.
Methods
impl Socks4HttpConnector
[src]
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 Debug for Socks4HttpConnector
[src]
impl NetworkConnector for Socks4HttpConnector
[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.