Crate hyper_rustls[−][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::{Body, Client, StatusCode, Uri}; use tokio_core::reactor; fn main() { let mut core = reactor::Core::new().unwrap(); let url = ("https://hyper.rs").parse().unwrap(); let https = hyper_rustls::HttpsConnector::new(4); let client: Client<_, hyper::Body> = Client::builder().build(https); let res = core.run(client.get(url)).unwrap(); assert_eq!(res.status(), StatusCode::OK); }
Structs
HttpsConnector |
A Connector for the |
Enums
MaybeHttpsStream |
A stream that might be protected with TLS. |