Trait httpbis::Service[][src]

pub trait Service: Send + Sync + 'static {
    fn start_request(
        &self,
        headers: Headers,
        req: HttpStreamAfterHeaders
    ) -> Response; }

Central HTTP/2 service interface.

This trait is used by both client and server.

Client API simply implements this trait.

Server implementation calls implementation of this trait providede by user.

Required Methods

Start HTTP/2 request.

headers param specifies initial request headers. req param contains asynchronous stream of request content, stream of zero or more DATA frames followed by optional trailer HEADERS frame.

Implementors