[−][src]Trait hyper::http::message::Protocol
The trait provides an API for creating new HttpMessages depending on the underlying HTTP
protocol.
Required Methods
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>
Creates a fresh HttpMessage bound to the given host, based on the given protocol scheme.
Implementors
impl Protocol for Http11Protocol[src]
impl Protocol for Http11Protocolfn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>[src]
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>impl<C, S> Protocol for Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone, [src]
impl<C, S> Protocol for Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone, fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>[src]
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage>>