Module httpbis::solicit::connection
[−]
[src]
The module contains the implementation of an HTTP/2 connection.
This provides an API to read and write raw HTTP/2 frames, as well as a way to hook into higher-level events arising on an HTTP/2 connection, such as the receipt of headers on a particular stream or a new data chunk.
The SendFrame
and ReceiveFrame
traits are the API to sending and receiving frames off of an
HTTP/2 connection. The module includes default implementations of those traits for io::Write
and solicit::http::transport::TransportStream
types.
The HttpConnection
struct builds on top of these traits and provides an API for sending
messages of a higher level to the peer (such as writing data or headers, while automatically
handling the framing and header encoding), as well as for handling incoming events of that
type. The Session
trait is the bridge between the connection layer (i.e. the
HttpConnection
) and the higher layers that handle these events and pass them on to the
application.
Structs
HttpConnection |
The struct implements the HTTP/2 connection level logic. |
Enums
EndStream |
An enum indicating whether the |
HttpFrame |
An enum representing all frame variants that can be returned by an |
HttpFrameType |