Struct rocket::http::hyper::net::HttpsConnector [−][src]
pub struct HttpsConnector<S, C = HttpConnector> where
C: NetworkConnector,
S: SslClient<HttpStream>, { /* fields omitted */ }
Expand description
A connector that can protect HTTP streams using SSL.
Implementations
Create a new connector using the provided SSL implementation.
Create a new connector using the provided SSL implementation.
Trait Implementations
impl<S, C> Debug for HttpsConnector<S, C> where
C: Debug + NetworkConnector,
S: Debug + SslClient<HttpStream>,
impl<S, C> Debug for HttpsConnector<S, C> where
C: Debug + NetworkConnector,
S: Debug + SslClient<HttpStream>,
impl<S, C> Default for HttpsConnector<S, C> where
C: Default + NetworkConnector,
S: Default + SslClient<HttpStream>,
impl<S, C> Default for HttpsConnector<S, C> where
C: Default + NetworkConnector,
S: Default + SslClient<HttpStream>,
Returns the “default value” for a type. Read more
impl<S, C> NetworkConnector for HttpsConnector<S, C> where
C: NetworkConnector<Stream = HttpStream>,
S: SslClient<HttpStream>,
impl<S, C> NetworkConnector for HttpsConnector<S, C> where
C: NetworkConnector<Stream = HttpStream>,
S: SslClient<HttpStream>,
type Stream = HttpsStream<<S as SslClient<HttpStream>>::Stream>
type Stream = HttpsStream<<S as SslClient<HttpStream>>::Stream>
Type of Stream
to create
pub fn connect(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<<HttpsConnector<S, C> as NetworkConnector>::Stream, Error>
pub fn connect(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<<HttpsConnector<S, C> as NetworkConnector>::Stream, Error>
Connect to a remote address.