Struct hyper::http::h2::Http2Protocol[][src]

pub struct Http2Protocol<C, S> where
    C: NetworkConnector<Stream = S> + Send + 'static,
    S: NetworkStream + Send + Clone
{ /* 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]

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]

Creates a fresh HttpMessage bound to the given host, based on the given protocol scheme.

Auto Trait Implementations

impl<C, S> Send for Http2Protocol<C, S>

impl<C, S> Sync for Http2Protocol<C, S> where
    C: Sync