Skip to content

feat: add delayed health check endpoint#818

Open
Husainbw786 wants to merge 2 commits intomainfrom
feat/delayed-health-check
Open

feat: add delayed health check endpoint#818
Husainbw786 wants to merge 2 commits intomainfrom
feat/delayed-health-check

Conversation

@Husainbw786
Copy link
Copy Markdown
Collaborator

Summary

Adds a new health check endpoint that waits 10 seconds before responding.

Changes

  • Added /health-check-delayed endpoint that:
    • Waits for 10 seconds using setTimeout
    • Returns a JSON response with status ok and delay information
    • Returns HTTP 200 status

Endpoint

GET /health-check-delayed

Response (after 10s delay)

{
  "status": "ok",
  "message": "Health check passed after 10 second delay",
  "delay": "10s"
}

Why

This endpoint can be used for testing timeouts, load balancer configurations, or any scenario where a delayed response is needed for testing purposes.

@windsurf-bot
Copy link
Copy Markdown
Contributor

windsurf-bot bot commented Mar 16, 2026

PR review rate limit exceeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants