#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

#62 in HTTP client

Download history 69/week @ 2018-12-18 2/week @ 2018-12-25 8/week @ 2019-01-01 34/week @ 2019-01-08 19/week @ 2019-01-15 6/week @ 2019-01-22 1/week @ 2019-01-29 13/week @ 2019-02-05 24/week @ 2019-02-12 26/week @ 2019-02-19 112/week @ 2019-02-26 170/week @ 2019-03-05 47/week @ 2019-03-12 38/week @ 2019-03-19 53/week @ 2019-03-26

181 downloads per month
Used in 4 crates (2 directly)

Apache-2.0 OR MIT

7KB
91 lines

hyper-socks2

Build Status License crates.io API docs Codecov

The reborn of the SOCKS4/5 connector for Hyper library

Changelog

License

hyper-socks2 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
~72K SLoC