retryIf

Specifies retry logic for a response. The block accepts HttpRequest and HttpResponse and should return true if this request should be retried.