retryIf
fun retryIf(maxRetries: Int = -1, block: HttpRequestRetry.ShouldRetryContext.(HttpRequest, HttpResponse) -> Boolean)
Content copied to clipboard
Specifies retry logic for a response. The block accepts HttpRequest and HttpResponse and should return true
if this request should be retried.