Skip to main content

health_handler

Function health_handler 

Source
pub async fn health_handler(__arg0: State<Arc<NodeState>>) -> impl IntoResponse
Expand description

Handler for GET /scp/dev/v1/health.

Returns a HealthResponse with the node’s uptime (computed from NodeState::start_time), relay connection count, and storage status.

See spec section 18.10.3.