Struct rocket::http::hyper::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: 'static + NetworkConnector<Stream = S> + Send + Sync,
S: NetworkStream + Send,
pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: 'static + NetworkConnector<Stream = S> + Send + Sync,
S: NetworkStream + Send,
Creates a new Http11Protocol
instance that will use the given NetworkConnector
for
establishing HTTP connections.
Trait Implementations
pub fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
pub fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
Creates a fresh HttpMessage
bound to the given host, based on the given protocol scheme.