RetryAfterAboveMaxDelay

public enum RetryAfterAboveMaxDelay

What to do when a Retry-After header is above the maximum delay allowed for a retry.

  • Stop proposing a retry for that failure: the interceptor returns .doNotRetry (no opinion), so the request completes with that failure unless another interceptor retries it.

    Declaration

    Swift

    case giveUp
  • Wait as long as the server asked, even beyond the maximum allowed delay.

    Declaration

    Swift

    case wait