Expand description
Bounded one-shot HTTP/1.1 server transport over Moirai TCP sockets.
Structs§
- Awaiting
Request - A connection that has not read its request yet.
- Awaiting
Response - A connection that has read one request and may write one response.
- Http
Connection - A one-shot HTTP connection whose typestate controls its lifecycle.
- Http
Request - A validated HTTP request with an owned bounded body.
- Http
Response - A validated HTTP response owned by the application.
- Http
Server - A bound HTTP/1.1 server listener.
- Server
Config - Resource and deadline limits for the one-shot HTTP server.
Constants§
- DEFAULT_
MAX_ BODY_ BYTES - Default maximum size of one request body.
- DEFAULT_
MAX_ CONNECTIONS - Default maximum number of accepted connections tracked by the listener.
- DEFAULT_
MAX_ HEADER_ BYTES - Default maximum size of one request header block.
- DEFAULT_
MAX_ HEADER_ COUNT - Default maximum number of request or response headers.
- DEFAULT_
MAX_ RESPONSE_ BYTES - Default maximum logical size of one response, including its body.
- DEFAULT_
REQUEST_ TIMEOUT - Default deadline for one request read or response write.