Struct hyper::http::h1::Http11Protocol [−][src]
pub struct Http11Protocol { /* fields omitted */ }The Protocol implementation provides HTTP/1.1 messages.
Methods
impl Http11Protocol[src]
impl Http11Protocolpub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send, [src]
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
impl Protocol for Http11Protocol[src]
impl Protocol for Http11Protocolfn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<HttpMessage>>[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.
Auto Trait Implementations
impl Send for Http11Protocol
impl Send for Http11Protocolimpl Sync for Http11Protocol
impl Sync for Http11Protocol