actix-socks

Crates.ioactix-socks
lib.rsactix-socks
version0.1.0
sourcesrc
created_at2020-05-13 22:38:05.793578
updated_at2020-05-13 22:38:05.793578
descriptionA connector for actix-client that adds support for SOCKSv5 proxies.
homepage
repositoryhttps://github.com/DR-BoneZ/actix-socks
max_upload_size
id241294
size5,794
Aiden McClelland (dr-bonez)

documentation

http://docs.rs/actix-socks

README

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);
Commit count: 2

cargo fmt