shouldRetry method

bool shouldRetry(
  1. HttpResponse? response,
  2. RhttpException? exception
)

Whether to retry the request. Override this method to customize the retry logic.

Implementation

bool shouldRetry(HttpResponse? response, RhttpException? exception) {
  return shouldRetryFunc(response, exception);
}