1//! # hyper-tls
2//!
3//! An HTTPS connector to be used with [hyper][].
4//!
5//! [hyper]: https://hyper.rs
6//!
7//! ## Example
8//!
9//! ```no_run
10//! use hyper_tls::HttpsConnector;
11//! use hyper::Client;
12//!
13//! #[tokio::main(flavor = "current_thread")]
14//! async fn main() -> Result<(), Box<dyn std::error::Error>>{
15//! let https = HttpsConnector::new();
16//! let client = Client::builder().build::<_, hyper::Body>(https);
17//!
18//! let res = client.get("https://hyper.rs".parse()?).await?;
19//! assert_eq!(res.status(), 200);
20//! Ok(())
21//! }
22//! ```
23#![doc(html_root_url = "https://docs.rs/hyper-tls/0.5.0")]
24#![cfg_attr(test, deny(warnings))]
25#![deny(missing_docs)]
26#![deny(missing_debug_implementations)]
27
28#[doc(hidden)]
29pub extern crate native_tls;
30
31pub use client::{HttpsConnecting, HttpsConnector};
32pub use stream::{MaybeHttpsStream, TlsStream};
33
34mod client;
35mod stream;
36