Interceptor

interface Interceptor

Interface for intercepting network requests and responses.

Functions

Link copied to clipboard
abstract fun didComplete(request: HttpRequest, result: NetworkResult)

Called when a network request is completed along with the corresponding result.

Link copied to clipboard
abstract fun shouldRetry(request: HttpRequest, result: NetworkResult, retryCount: Int): RetryPolicy

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