Struct hyper::http::h1::Http11Protocol [−][src]
pub struct Http11Protocol { /* fields omitted */ }
Expand description
The Protocol
implementation provides HTTP/1.1 messages.
Implementations
pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
Creates a new Http11Protocol
instance that will use the given NetworkConnector
for
establishing HTTP connections.
Trait Implementations
Creates a fresh HttpMessage
bound to the given host, based on the given protocol scheme.