#hyper #network #ssl #tls

hyper-socks2

The reborn of the SOCKS4/5 connector for Hyper library

8 releases

✓ Uses Rust 2018 edition

0.2.1 Feb 10, 2019
0.2.0 Jan 10, 2019
0.1.5 Jan 9, 2019
0.1.4 Dec 22, 2018

#70 in HTTP client

Download history 67/week @ 2018-12-16 18/week @ 2018-12-23 8/week @ 2018-12-30 30/week @ 2019-01-06 24/week @ 2019-01-13 5/week @ 2019-01-20 2/week @ 2019-01-27 4/week @ 2019-02-03

50 downloads per month
Used in 1 crate

Apache-2.0 OR MIT

7KB
91 lines

hyper-socks2

Build Status License crates.io API docs

Reborn of SOCKS4/5 connector for Hyper library

License

hyper-socks under either of:

at your option.


lib.rs:

The reborn of the SOCKS4/5 connector for Hyper library

Example

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

# use hyper_socks2::Error;
# fn hidden() -> Result<(), Error> {
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);
# Ok(())
# }

Features

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

Dependencies

~4MB
~70K SLoC