Delay Response
Introduces an artificial delay before responding.
/utilities/delay/{seconds}
📋 Description
Delays the response by the specified number of seconds. Supports fractional values.
🔧 Parameters
- • Standard range:
0to30seconds - • Special timeout values:
300(5 min) or600(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
300and600for extended timeout testing - Use extended delays with caution - they hold connections open
- Invalid delays return 400 Bad Request
- Cache-Control:
no-cache