Skip to main content

Module http_server

Module http_server 

Source
Expand description

Optional authenticated HTTP delivery for read-only application services.

Structs§

BearerToken
A bearer token whose formatting and errors never reveal its contents.
ContractsInput
Input for a contract-only ranked query.
HttpServerConfig
Fixed workspace and database configuration for one HTTP server.
StatusInput
Empty input accepted by status.

Enums§

BearerTokenError
Failure to construct a safe bearer token.
HttpServerError
HTTP server startup or serving failure.

Constants§

DEFAULT_HTTP_BIND
Default loopback address used by optional HTTP delivery.

Functions§

create_router
Builds the read-only HTTP router after validating bind and authentication policy.
serve_http
Binds and serves optional HTTP delivery until cancellation requests graceful shutdown.
serve_http_on_listener
Serves on an existing listener, retaining the listener’s actual bind policy.