RetryInterceptor

class RetryInterceptor(@IntRange(from = 1.toLong()retryCount: Int) : Interceptor

重试次数拦截器

Constructors

RetryInterceptor
Link copied to clipboard
fun RetryInterceptor(@IntRange(from = 1.toLong()retryCount: Int = 3)

Functions

intercept
Link copied to clipboard
open override fun intercept(chain: Interceptor.Chain): Response

Properties

retryCount
Link copied to clipboard
var retryCount: Int = 3
重试次数