Crate httpbis[][src]

Asynchnous HTTP/2 client and server implementation.

Based on futures/tokio.

Structs

Client

Asynchronous HTTP/2 client.

ClientBuilder

Builder for HTTP/2 client.

ClientConf
Header
Headers
HttpStreamAfterHeaders

Stream of DATA or HEADERS frames after initial HEADERS.

Response

Convenient wrapper around async HTTP response future/stream

Server
ServerBuilder
ServerConf
ServicePaths

Convient implementation of Service which allows delegation to multiple Service implementations provided by user.

SimpleHttpMessage

Enums

AnySocketAddr
ClientTlsOption
CpuPoolOption
DataOrTrailers

Stream frame content after initial headers

Error

An enum representing errors that can arise when performing operations involving an HTTP/2 connection.

ErrorCode

The enum represents an error code that are used in RST_STREAM and GOAWAY frames. These are defined in Section 7 of the HTTP/2 spec.

HttpScheme

An enum representing the two possible HTTP schemes.

ServerAlpn
ServerTlsOption

Traits

Service

Central HTTP/2 service interface.

Type Definitions

Result

A convenience Result type that has the HttpError type as the error type and a generic Ok result type.