Trait rocket::http::hyper::net::SslClient [−][src]
An abstraction to allow any SSL implementation to be used with client-side HttpsStreams.
Associated Types
type Stream: NetworkStream + Clone + Send
[src]
The protected stream.
Required methods
pub fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream, Error>
[src]
Wrap a client stream with SSL.
Implementations on Foreign Types
impl SslClient<HttpStream> for TlsClient
type Stream = WrappedStream<ClientSession, HttpStream>
pub fn wrap_client(
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession, HttpStream>, Error>
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession, HttpStream>, Error>