[][src]Crate hyper_socks2

The reborn of the SOCKS4/5 connector for Hyper library

Example

use hyper::{client::Client, Body};
use hyper_socks2::Proxy;

let proxy = Proxy::Socks5 {
    addrs: "your.socks5.proxy:1080",
    auth: None,
};

// with TLS support
let proxy = proxy.with_tls()?;

let client = Client::builder().build::<_, Body>(proxy);

Features

  • tls feature enabled by default. It adds TLS support using hyper-tls.

Structs

Auth

An authentication information

Connection

A future with ready TCP stream

Error

An error returned from the TLS implementation.

HttpsConnector

A Connector for the https scheme.

Enums

Proxy

A SOCKS4/5 proxy information and TCP connector