19 releases

0.5.0 Dec 29, 2020
0.4.3 Jul 6, 2020
0.4.1 Jan 9, 2020
0.4.0 Dec 10, 2019
0.0.0 Jan 4, 2017

#36 in Network programming

Download history 71919/week @ 2020-12-25 113453/week @ 2021-01-01 138466/week @ 2021-01-08 127461/week @ 2021-01-15 142720/week @ 2021-01-22 158410/week @ 2021-01-29 151678/week @ 2021-02-05 153301/week @ 2021-02-12 163190/week @ 2021-02-19 175160/week @ 2021-02-26 179564/week @ 2021-03-05 194572/week @ 2021-03-12 181301/week @ 2021-03-19 188801/week @ 2021-03-26 170423/week @ 2021-04-02 164348/week @ 2021-04-09

576,723 downloads per month
Used in 1,057 crates (245 directly)

MIT/Apache

14KB
234 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(flavor = "current_thread")]
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

~6MB
~114K SLoC