Struct hyper::http::h1::Http11Protocol [] [src]

pub struct Http11Protocol {
    // some fields omitted
}

The Protocol implementation provides HTTP/1.1 messages.

Methods

impl Http11Protocol

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

fn new_message(&self, host: &str, port: u16, scheme: &str) -> Result<Box<HttpMessage>>