Function hyper::http::h2::new_protocol
[−]
[src]
pub fn new_protocol() -> Http2Protocol<HttpConnector, HttpStream>
A convenience method that creates a default Http2Protocol
that uses a net::HttpConnector
(which produces an HttpStream
for the underlying transport layer).