HttpRetryPolicyResponse

data class HttpRetryPolicyResponse(val errors: List<String>? = null, val headers: List<HeaderMatchResponse>? = null, val httpStatusCodes: List<Int>? = null, val initialDelayInMilliseconds: Double? = null, val maxIntervalInMilliseconds: Double? = null, val maxRetries: Int? = null)

Policy that defines http request retry conditions

Constructors

Link copied to clipboard
constructor(errors: List<String>? = null, headers: List<HeaderMatchResponse>? = null, httpStatusCodes: List<Int>? = null, initialDelayInMilliseconds: Double? = null, maxIntervalInMilliseconds: Double? = null, maxRetries: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val errors: List<String>? = null

Errors that can trigger a retry

Link copied to clipboard

Headers that must be present for a request to be retried

Link copied to clipboard
val httpStatusCodes: List<Int>? = null

Additional http status codes that can trigger a retry

Link copied to clipboard

Initial delay, in milliseconds, before retrying a request

Link copied to clipboard

Maximum interval, in milliseconds, between retries

Link copied to clipboard
val maxRetries: Int? = null

Maximum number of times a request will retry