Package-level declarations

Types

Link copied to clipboard
internal typealias ModifyRequestOnRetry = (HttpRequestBuilder, attempt: Int) -> Unit

Callback to modify the request between retries.

Link copied to clipboard
internal typealias RetryOnCallPredicate = (HttpRequest, HttpResponse) -> Boolean

Predicate to determine if an HTTP call should be retried based on the request and response.

Link copied to clipboard
data class RetryPluginConfig(val retryConfig: RetryConfig, val modifyRequestOnRetry: ModifyRequestOnRetry, val retryOnCallPredicate: RetryOnCallPredicate)

Configuration for the KresilRetryPlugin.

Link copied to clipboard

Builder for configuring the KresilRetryPlugin.

Functions

Link copied to clipboard

Indicates whether the exception is a timeout exception. See HttpTimeout plugin for more information.