Skip to main content

basic_health_handler

Function basic_health_handler 

Source
pub fn basic_health_handler() -> impl Fn(&RequestContext, &mut Request) -> Ready<Response> + Send + Sync + 'static
Expand description

Create a basic health check handler that returns {"status":"healthy"}.

This is the simplest health check — always returns 200 OK. Useful as a basic liveness probe when you just need to confirm the process is running.