RecordingRetryPolicy
A RetryPolicy that records every decision and forwards to delegate, so tests can assert how many retries happened, for which errors, and with what delays. Defaults to wrapping a DefaultRetryPolicy.
Types
Link copied to clipboard
data class Decision(val attempt: Int, val method: HttpMethod, val error: NetworkError, val delayMillis: Long?)
One recorded retry decision: the inputs and the delayMillis the delegate returned.