Skip to main content

liveness_handler

Function liveness_handler 

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

Create a Kubernetes liveness probe handler.

Returns 200 OK if the process is alive. This is equivalent to basic_health_handler() but semantically represents a liveness check.