Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.network/Interceptor/shouldRetry

shouldRetry

abstract fun shouldRetry(request: HttpRequest, result: NetworkResult, retryCount: Int): RetryPolicy

Determines if a network request should be retried based on the provided parameters.

Return

A RetryPolicy indicating whether the request should be retried and the retry behavior.

Parameters

request

The HttpRequest object representing the request.

result

The NetworkResult object representing the result of the previous request attempt.

retryCount

The number of retry attempts made so far.

Generated by Dokka
(c) Tealium 2026