class ChuckerInterceptor : Interceptor
An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
context - An Android Context
collector - A ChuckerCollector to customize data retention
maxContentLength - The maximum length for request and response content
before their truncation. Warning: setting this value too high may cause unexpected
results.
fileFactory - Provider for Files where Chucker will save temporary responses before
processing them.
headersToRedact - a Set of headers you want to redact. They will be replaced
with a ** in the Chucker UI.
<init> |
An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection. ChuckerInterceptor(context: Context, collector: ChuckerCollector = ChuckerCollector(context), maxContentLength: Long = 250000L, headersToRedact: Set<String> = emptySet()) |
intercept |
fun intercept(chain: Chain): Response |
redactHeader |
Adds headerName into headersToRedact fun redactHeader(vararg headerName: String): Unit |