Struct tokio_http2::http::HttpProto [] [src]

pub struct HttpProto {
    pub logger: Option<Logger>,
    pub router: Option<Router>,
}

Proto and Codec can have STATE so you can add features to these two and then pass them to TcpServer.

Fields

Trait Implementations

impl Default for HttpProto
[src]

Returns the "default value" for a type. Read more

impl ServerProto<TcpStream> for HttpProto
[src]

Request messages.

Response messages.

The message transport, which works with I/O objects of type T. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more