Crate temp_hrtls [−] [src]
hyper-rustls
A pure-Rust HTTPS connector for hyper, based on Rustls.
Example
extern crate hyper; extern crate hyper_rustls; extern crate tokio_core; use hyper::{Client, Uri}; use tokio_core::reactor; fn main() { let mut core = reactor::Core::new().unwrap(); let url = ("https://hyper.rs").parse().unwrap(); let client = hyper::Client::configure() .connector(hyper_rustls::HttpsConnector::new(4, &core.handle())) .build(&core.handle()); let res = core.run(client.get(url)).unwrap(); assert_eq!(res.status(), hyper::Ok); }
Structs
HttpsConnector |
A Connector for the |