Karve app icon

Karve

ASP.NET Core aspnet-core-health-check.http

ASP.NET Core health check .http example

Check liveness, readiness, and response headers with requests that work well during local development and incident diagnosis.

aspnet-core-health-check.http

@baseUrl = https://localhost:7001

### Liveness probe
GET {{baseUrl}}/health/live
Accept: application/json

### Readiness probe
GET {{baseUrl}}/health/ready
Accept: application/json

### Inspect health response headers without a body
HEAD {{baseUrl}}/health

Variables to replace

baseUrl
Your ASP.NET Core HTTPS launch URL.

Expected response

Healthy endpoints generally return 200 OK. A readiness check may return 503 Service Unavailable when a required dependency is unavailable. HEAD returns headers without a response body.

Related examples and guides

Learn the full syntax in the .http file format guide, manage secrets with variables and environments, or see how to run .http files on Windows.

Launch Summer Sale

Run this request without leaving Windows.

Karve opens .http files as a native workspace: edit the plain text, press Run, inspect the response, and keep the file in Git.

15-day free trial · No account · No subscription · No metered requests

25% off until Sep 1