Crate hyper_openssl [−] [src]
Hyper SSL support via OpenSSL.
Usage
On the client side:
extern crate hyper; extern crate hyper_openssl; extern crate tokio_core; use hyper::Client; use hyper_openssl::HttpsConnector; use tokio_core::reactor::Core; fn main() { let mut core = Core::new().unwrap(); let client = Client::configure() .connector(HttpsConnector::new(4, &core.handle()).unwrap()) .build(&core.handle()); let res = core.run(client.get("https://hyper.rs".parse().unwrap())).unwrap(); assert!(res.status().is_success()); }
Reexports
pub extern crate openssl; |
Structs
ConnectFuture |
A future connecting to a remote HTTP server. |
HttpsConnector |
An Connector using OpenSSL to support |
Enums
MaybeHttpsStream |
A stream which may be wrapped with SSL. |