[][src]Module solicit::http::transport

The module contains implementations of the transport layer functionality that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to use the transport layer without requiring it to know which exact implementation they are using (e.g. a clear-text TCP connection, a TLS protected connection, or even a mock implementation).

The types provided here are purely for convenience in being able to easily plug in the native Rust socket IO primitives into the HTTP/2 connection API without having to write too much boilerplate around them.

Structs

TransportReceiveFrame

The struct is a an implementation of the ReceiveFrame trait that wraps an existing TransportStream and uses it to provide HTTP/2 frames, when asked for one, by reading from the stream. The implementation always allocates a new buffer on the heap for every incoming frame.

Traits

TransportStream

A trait that any struct that wants to provide the transport layer for HTTP/2 needs to implement.