hashbrown

HttpResponseRetryPolicy

Application classification of HTTP rejections before an event stream starts.

delayMs
number

Fallback delay when Retry-After is invalid or absent.

maxElapsedMs
number

Retry decision and waiting budget in milliseconds, starting at the first fetch.

maxRetries
number

Maximum additional HTTP requests in one send. Zero disables retry processing.

shouldRetry
(context: HttpResponseRetryContext) => boolean | Promise<boolean>

Return true only when repeating this rejected request is safe.