HTTP retry proxy with redirect following and cross-host credential dropping.
{
"name": "RetryOnFail",
"base_url": "https://retry.masiar.io",
"description": "HTTP retry proxy with redirect following; credential headers are dropped whenever a redirect changes hostname.",
"endpoints": {
"/": "GET HTML documentation, or proxy (any method) when url is present",
"/manual.json": "GET this manual",
"/openapi.json": "GET OpenAPI 3.1 schema"
},
"query": {
"url": "Absolute HTTP/HTTPS URL to proxy to",
"attempts": "1-3, default 1",
"delay": "500ms-20s, default 5s",
"timeout": "1s-30s, default 10s",
"debug": "1 adds retry history header",
"follow_redirects": "1 (default) or 0; max 5 hops"
},
"retry": {
"methods": "GET, HEAD, OPTIONS, PUT, DELETE always retried on a retryable failure; POST/PATCH only when the request carries Idempotency-Key",
"statuses": [
408,
425,
429,
500,
502,
503,
504,
520,
521,
522,
523,
524,
525,
526,
530
]
},
"redirects": "Followed automatically (disable with follow_redirects=0). The Authorization and Cookie headers are dropped as soon as a redirect hop changes hostname from the previous one, and stay dropped for the rest of the chain.",
"retry_after": "Respected without a cap when it fits the execution budget; otherwise the request ends with total_timeout.",
"limits": {
"ATTEMPTS": 3,
"MIN_DELAY": 500,
"MAX_DELAY": 20000,
"DEFAULT_DELAY": 5000,
"MIN_TIMEOUT": 1000,
"MAX_TIMEOUT": 30000,
"DEFAULT_TIMEOUT": 10000,
"TOTAL": 90000,
"BODY": 1000000,
"REDIRECTS": 5
},
"example": "curl -G 'https://retry.masiar.io/' --data-urlencode 'url=https://api.example.com/v1/data' --data-urlencode 'attempts=3' --data-urlencode 'debug=1'"
}