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

pub trait SslClient<T = HttpStream> where
    T: NetworkStream + Send + Clone
{ type Stream: NetworkStream + Send + Clone; 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

The protected stream.

Required Methods

Wrap a client stream with SSL.

Implementations on Foreign Types

impl SslClient<HttpStream> for TlsClient

Implementors