actix-socks 0.1.0

A connector for actix-client that adds support for SOCKSv5 proxies.
actix-socks-0.1.0 doesn't have any documentation.

Actix SOCKS

SOCKSv5 support for actix-client.

Usage

Add this to your Cargo.toml:

[dependencies]
actix-socks = "0.1.0"

Example: using a TOR proxy to connect to a hidden service

let client = actix_web::client::ClientBuilder::new()
    .connector(
        actix_web::client::Connector::new()
            .connector(actix_socks::SocksConnector("127.0.0.1:9050"))
            .timeout(std::time::Duration::from_secs(60))
            .finish(),
    )
    .finish();
let res = client
    .get("http://facebookcorewwwi.onion")
    .send()
    .await
    .unwrap();
println!("{:?}", res);