📋 Description

Delays the response by the specified number of seconds. Supports fractional values.

🔧 Parameters

  • Standard range: 0 to 30 seconds
  • Special timeout values: 300 (5 min) or 600 (10 min)
  • Fractional delays: 1.5, 0.5, etc.

💡 Usage Examples

3-second delay:
curl https://your-service.edgecompute.app/utilities/delay/3
Fractional delay:
curl https://your-service.edgecompute.app/utilities/delay/1.5
Maximum delay:
curl https://your-service.edgecompute.app/utilities/delay/30
Extended timeout (5 minutes):
curl https://your-service.edgecompute.app/utilities/delay/300

📄 Response Format

{
  "delay": 3,
  "message": "Response delayed by 3 seconds"
}

Important Notes

  • Standard delays limited to 0-30 seconds
  • Special values 300 and 600 for extended timeout testing
  • Use extended delays with caution - they hold connections open
  • Invalid delays return 400 Bad Request
  • Cache-Control: no-cache

Ready to Test?

Try 2-Second Delay