[][src]Trait rocket::http::hyper::net::SslClient

pub trait SslClient<T = HttpStream> where
    T: NetworkStream + Clone + Send
{ type Stream: NetworkStream + Clone + Send; fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream, Error>; }

An abstraction to allow any SSL implementation to be used with client-side HttpsStreams.

Associated Types

type Stream: NetworkStream + Clone + Send

The protected stream.

Loading content...

Required methods

fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream, Error>

Wrap a client stream with SSL.

Loading content...

Implementations on Foreign Types

impl SslClient<HttpStream> for TlsClient

type Stream = WrappedStream<ClientSession, HttpStream>

Loading content...

Implementors

Loading content...