Expand description
Abstractions for the application layer, providing a common interface for all HTTP versions supported.
You should not have to interface with this module. Use
handle_connectioninstead.
The main types are HttpConnection, representing a single encrypted generic http connection.
When accepting on the HttpConnection, you get a FatRequest; a http::Request with a Body.
The Body is a stream providing the body of the request if you need it, to avoid unnecessary allocations.
Structs§
- The data for
Body::Bytes. - A HTTP/1 body.
Enums§
- A body of a
Request. - General error for application-level logic.
- H2Send
Response http2Abstraction layer over different kinds of HTTP/2 response senders. - A single HTTP connection.
- A
ResponsePipe-like for a pushed request-response pair. - A pipe to send a body after the
Responseis sent byResponsePipe::send_response. - A pipe to send a
Responsethrough.