Struct hyper::http::h2::Http2Protocol
[−]
[src]
pub struct Http2Protocol<C, S> where C: NetworkConnector<Stream=S> + Send + 'static, S: NetworkStream + Send + Clone {
// some fields omitted
}The Protocol implementation that provides HTTP/2 messages (i.e. Http2Message).
Methods
impl<C, S> Http2Protocol<C, S> where C: NetworkConnector<Stream=S> + Send + 'static, S: NetworkStream + Send + Clone[src]
fn with_connector(connector: C) -> Http2Protocol<C, S>
Create a new Http2Protocol that will use the given NetworkConnector to establish TCP
connections to the server.
Trait Implementations
impl<C, S> Protocol for Http2Protocol<C, S> where C: NetworkConnector<Stream=S> + Send + 'static, S: NetworkStream + Send + Clone[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.