18 releases

✓ Uses Rust 2018 edition

new 0.4.3 Jul 6, 2020
0.4.1 Jan 9, 2020
0.4.0 Dec 10, 2019
0.4.0-alpha.4 Oct 1, 2019
0.0.0 Jan 4, 2017

#7 in HTTP server

Download history 78490/week @ 2020-03-16 81605/week @ 2020-03-23 85341/week @ 2020-03-30 84602/week @ 2020-04-06 82838/week @ 2020-04-13 89906/week @ 2020-04-20 95584/week @ 2020-04-27 90882/week @ 2020-05-04 100822/week @ 2020-05-11 88400/week @ 2020-05-18 90325/week @ 2020-05-25 106151/week @ 2020-06-01 106788/week @ 2020-06-08 107024/week @ 2020-06-15 103325/week @ 2020-06-22 96427/week @ 2020-06-29

411,171 downloads per month
Used in 743 crates (199 directly)

MIT/Apache

15KB
241 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
~133K SLoC