KtorMonitorInterceptor

class KtorMonitorInterceptor : <ERROR CLASS> ERROR CLASS: Symbol not found for Interceptor

An OkHttp Interceptor that provides the capability to log HTTP calls.

You can learn more from KtorMonitor.

OkHttpClient.Builder()
.addNetworkInterceptor(
KtorMonitorInterceptor {
sanitizeHeader { header -> header == "Authorization" }
isActive = true
showNotification = true
retentionPeriod = RetentionPeriod.OneHour
maxContentLength = ContentLength.Default
}
)
.build()

Constructors

Link copied to clipboard
constructor()
constructor(block: KtorMonitorInterceptorConfig.() -> Unit)

Functions

Link copied to clipboard
open override fun intercept(chain: ERROR CLASS: Symbol not found for Interceptor.Chain): ERROR CLASS: Symbol not found for Response