Module kvarn::application

source ·
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_connection instead.

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.


The data for Body::Bytes.
A HTTP/1 body.


A body of a Request.
General error for application-level logic.
A single HTTP connection.
A ResponsePipe-like for a pushed request-response pair.
A pipe to send a body after the Response is sent by ResponsePipe::send_response.
A pipe to send a Response through.