Crate hyper_tls[][src]

hyper-tls

An HTTPS connector to be used with hyper.

Example

extern crate hyper;
extern crate hyper_tls;
extern crate tokio_core;

fn main() {
    let mut core = ::tokio_core::reactor::Core::new().unwrap();

    let client = ::hyper::Client::configure()
        .connector(::hyper_tls::HttpsConnector::new(4, &core.handle()).unwrap())
        .build(&core.handle());

    let res = core.run(client.get("https://hyper.rs".parse().unwrap())).unwrap();
    assert_eq!(res.status(), ::hyper::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 https scheme.

Enums

MaybeHttpsStream

A stream that might be protected with TLS.