KtorMonitorInterceptor
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()Content copied to clipboard