12 releases

✓ Uses Rust 2018 edition

0.4.0-alpha.1 Sep 4, 2019
0.3.2 Mar 19, 2019
0.3.1 Oct 2, 2018
0.3.0 Jun 26, 2018
0.0.0 Jan 4, 2017

#3 in #hyper

Download history 36158/week @ 2019-05-22 40241/week @ 2019-05-29 33630/week @ 2019-06-05 55479/week @ 2019-06-12 30536/week @ 2019-06-19 34701/week @ 2019-06-26 30298/week @ 2019-07-03 34643/week @ 2019-07-10 35805/week @ 2019-07-17 40554/week @ 2019-07-24 38210/week @ 2019-07-31 39227/week @ 2019-08-07 39794/week @ 2019-08-14 39081/week @ 2019-08-21 36057/week @ 2019-08-28

161,369 downloads per month
Used in 600 crates (156 directly)

MIT/Apache

17KB
186 lines

hyper-tls

Provides an HTTPS connector for use with hyper.

Documentation

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

hyper-tls

An HTTPS connector to be used with hyper.

Example

use hyper_tls::HttpsConnector;
use hyper::Client;

#[tokio::main]
async fn main() -> Result<(), hyper::Error>{
    // 4 is number of blocking DNS threads
    let https = HttpsConnector::new().unwrap();
    let client = Client::builder().build::<_, hyper::Body>(https);

    let res = client.get("https://hyper.rs".parse().unwrap()).await?;
    assert_eq!(res.status(), 200);
    Ok(())
}

Dependencies

~2.6–3.5MB
~71K SLoC