Skip to main content

check_health

Function check_health 

Source
pub async fn check_health(port: u16) -> Result<HealthResponse, HealthError>
Expand description

Check health by querying OpenCode’s /global/health endpoint

Returns the health response on success (HTTP 200). Returns an error for connection issues, timeouts, or non-200 responses.