17 releases

✓ Uses Rust 2018 edition

0.4.1 Jan 9, 2020
0.4.0 Dec 10, 2019
0.4.0-alpha.4 Oct 1, 2019
0.3.2 Mar 19, 2019
0.0.0 Jan 4, 2017

#1 in #https

Download history 55240/week @ 2019-10-04 48885/week @ 2019-10-11 51491/week @ 2019-10-18 50824/week @ 2019-10-25 51453/week @ 2019-11-01 50516/week @ 2019-11-08 53109/week @ 2019-11-15 53571/week @ 2019-11-22 57442/week @ 2019-11-29 65908/week @ 2019-12-06 63169/week @ 2019-12-13 41833/week @ 2019-12-20 39423/week @ 2019-12-27 64411/week @ 2020-01-03 68237/week @ 2020-01-10

227,280 downloads per month
Used in 639 crates (165 directly)

MIT/Apache

15KB
233 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<(), Box<dyn std::error::Error>>{
    let https = HttpsConnector::new();
    let client = Client::builder().build::<_, hyper::Body>(https);

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

Dependencies

~6.5MB
~129K SLoC