retryOnExceptionIf
fun retryOnExceptionIf(maxRetries: Int = -1, block: HttpRequestRetry.ShouldRetryContext.(HttpRequestBuilder, Throwable) -> Boolean)
Content copied to clipboard
Specifies retry logic for failed requests. The block accepts HttpRequestBuilder and Throwable and should return true if this request should be retried.