Trait hyper::net::SslClient

source ·
pub trait SslClient<T: NetworkStream + Send + Clone = HttpStream> {
    type Stream: NetworkStream + Send + Clone;

    fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream>;
}
Expand description

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

Required Associated Types§

The protected stream.

Required Methods§

Wrap a client stream with SSL.

Implementors§