Skip to main content

Module server

Module server 

Source
Expand description

Bounded one-shot HTTP/1.1 server transport over Moirai TCP sockets.

Structs§

AwaitingRequest
A connection that has not read its request yet.
AwaitingResponse
A connection that has read one request and may write one response.
HttpConnection
A one-shot HTTP connection whose typestate controls its lifecycle.
HttpRequest
A validated HTTP request with an owned bounded body.
HttpResponse
A validated HTTP response owned by the application.
HttpServer
A bound HTTP/1.1 server listener.
ServerConfig
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.