Connectum API Reference / @connectum/healthcheck / createHttpHealthHandler
Function: createHttpHealthHandler()
createHttpHealthHandler(
manager,healthPaths?):HttpHandler
Defined in: httpHandler.ts:57
Create HTTP health handler that mirrors gRPC healthcheck status
Returns an HttpHandler compatible with the ProtocolRegistration interface.
Parameters
manager
Healthcheck manager instance
healthPaths?
string[] = DEFAULT_HTTP_PATHS
HTTP health endpoint paths
Returns
HttpHandler
HTTP handler function that returns true if request was handled
