Trait rocket::http::hyper::net::SslClient

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

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

Required Associated Types§

source

type Stream: NetworkStream + Send + Clone

The protected stream.

Required Methods§

source

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

Wrap a client stream with SSL.

Implementors§