Skip to content

HealthConfig

Defined in: packages/gateway/src/core/health.ts:8

Configuration for the health route factory.

optional includeUpstreamStatus?: boolean

Defined in: packages/gateway/src/core/health.ts:14

Include individual upstream statuses in response. Default: false.


optional path?: string

Defined in: packages/gateway/src/core/health.ts:10

Health endpoint path. Default: “/health”.


optional probeMethod?: string

Defined in: packages/gateway/src/core/health.ts:18

HTTP method for upstream probes. Default: "HEAD".


optional probeTimeoutMs?: number

Defined in: packages/gateway/src/core/health.ts:16

Timeout in ms for each upstream probe. Default: 5000.


optional unhealthyStatusCode?: number

Defined in: packages/gateway/src/core/health.ts:20

Status code returned when all probes are unhealthy. Default: 503.


optional upstreamProbes?: string[]

Defined in: packages/gateway/src/core/health.ts:12

URLs to probe for upstream health.