Skip to main content

@rtorcato/api-health-express v1.0.0

Functions

livenessHandler()

livenessHandler(): RequestHandler

Defined in: index.ts:9

Liveness probe handler — always 200 { status: 'healthy' }. Mount at /healthz. Answering at all proves the event loop is responsive; it runs no dependency checks by design.

Returns

RequestHandler


readinessHandler()

readinessHandler(registry): RequestHandler

Defined in: index.ts:20

Readiness probe handler — runs the registry's checks and responds 200 when all pass or 503 when any fail, with the full report as the body. Mount at /readyz.

Parameters

registry

HealthRegistry

Returns

RequestHandler