Skip to main content

Module server

Module server 

Source
Expand description

Minimal HTTP server for RedDB management and remote access.

Re-exports§

pub use self::http_limits::HttpLimitsCliInput;
pub use self::http_limits::HttpLimitsResolved;
pub use self::http_limits::DEFAULT_HANDLER_TIMEOUT_MS;
pub use self::http_limits::DEFAULT_RETRY_AFTER_SECS;

Modules§

handlers_admin
Lifecycle / admin HTTP endpoints (PLAN.md Phase 1).
header_escape_guard
HeaderEscapeGuard — typed boundary guard for HTTP response header values.
http_connection_limiter
Bounded handler-thread admission for the clear-text HTTP accept loop.
http_handler_metrics
Prometheus metrics for the HTTP handler-thread pool.
http_limits
Resolution of the three HTTP handler-pool knobs (issue #574 slice 5).
ingest_pipeline
JSON-first ingest pipeline — autodetects JSON-array bodies, NDJSON streams, and envelope-style payloads, then hands the rows over to the storage layer as a Vec<HashMap<String, Value>>.
output_stream
Output streaming primitives for issue #760 (PRD #759 / ADR 0029) — the “shim slice” of bidirectional streaming.
tls
HTTP TLS termination for the embedded HTTP server.

Structs§

RedDBServer
ServerOptions
ServerReplicationState
Replication state exposed to the HTTP server.

Enums§

ServerSurface
PLAN.md Phase 6.2 — endpoint segregation. A given HTTP listener can serve either every public surface (Public, default) or a restricted slice (AdminOnly, MetricsOnly). The route filter at the top of route() consults this so a port bound only to loopback for admin work won’t accidentally hand out DML.

Constants§

DEFAULT_HTTP_MAX_BODY_BYTES