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