Expand description
HTTP server: HTTP/1.1 + HTTP/2 over TCP, optional HTTP/3 over QUIC.
Modulesยง
Structsยง
- Http
Config - HTTP settings for
http://endpoints, set withServerBuilder::http_config. - Http
Server ๐ - HTTP server (TCP for h1/h2, optional QUIC for h3).
Constantsยง
- ERR_
BODY_ ๐TOO_ LARGE - ERR_
ENCODE_ ๐RESPONSE - ERR_
METHOD_ ๐NOT_ ALLOWED - ERR_
READ_ ๐BODY - MAX_
HTTP_ ๐BODY_ SIZE - Max HTTP request body size (1 MB).
Traitsยง
- Http
Acceptor ๐ - Runs an HTTP server. Hides the codec type, like
AsyncAcceptordoes for the stream transports.
Functionsยง
- encode_
response ๐ - Encode a JSON-RPC response with the server codec.
- json_
response ๐ - Response with one of the pre-encoded JSON error bodies (
ERR_*). - json_
response_ ๐bytes - Response with a codec-encoded body.
- parse_
error_ ๐response - Build the JSON-RPC parse error response.