[][src]Crate hyper_socks2

A SOCKS5 connector for hyper library

Example

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

let proxy = SocksConnector {
    proxy_addr: "your.socks5.proxy:1080",
    auth: None,
};

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

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

Features

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

Structs

Auth

Required for a username + password authentication.

SocksConnector

A SOCKS5 proxy information and TCP connector

Enums

Error

Type Definitions

SocksFuture

A future is returned from SocksConnector service