Struct hyper::http::h1::Http11Protocol
[−]
[src]
pub struct Http11Protocol { // some fields omitted }
The Protocol
implementation provides HTTP/1.1 messages.
Methods
impl Http11Protocol
[src]
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
impl Protocol for Http11Protocol
[src]
fn new_message(&self, host: &str, port: u16, scheme: &str) -> Result<Box<HttpMessage>>
Creates a fresh HttpMessage
bound to the given host, based on the given protocol scheme.