[−][src]Crate hyper_tls
hyper-tls
An HTTPS connector to be used with hyper.
Example
use hyper_tls::HttpsConnector; use hyper::Client; #[tokio::main] async fn main() -> Result<(), hyper::Error>{ // 4 is number of blocking DNS threads let https = HttpsConnector::new().unwrap(); let client = Client::builder().build::<_, hyper::Body>(https); let res = client.get("https://hyper.rs".parse().unwrap()).await?; assert_eq!(res.status(), 200); Ok(()) }
Structs
Error | An error returned from the TLS implementation. |
HttpsConnecting | A Future representing work to connect to a URL, and a TLS handshake. |
HttpsConnector | A Connector for the |
TlsStream | A wrapper around an underlying raw stream which implements the TLS or SSL protocol. |
Enums
MaybeHttpsStream | A stream that might be protected with TLS. |