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
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.