Module server

Module server 

Source
Expand description

HTTP server integration points. Server-side integration points.

This module provides small, framework-agnostic primitives for exposing standard operational endpoints.

§Feature requirements

  • The core types (Readiness, HttpServer) require std.
  • axum integration helpers are available behind the axum feature.

§Contracts

  • Readiness is cooperative state: application code must update it.
  • Readiness is intended for load balancers and orchestrators; it is not a substitute for correctness checks.

Structs§

HttpServer
Minimal server-side shape for standard platform health and readiness endpoints.
Readiness
Shareable readiness latch for exposing a /readyz endpoint.

Enums§

ReadinessState
Readiness state used by Readiness.

Constants§

DEFAULT_HEALTHZ_PATH
Default route path for the liveness endpoint.
DEFAULT_READYZ_PATH
Default route path for the readiness endpoint.