Package 

Class ChuckerInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class ChuckerInterceptor
     implements Interceptor
                        

    An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.

    • Constructor Detail

      • ChuckerInterceptor

        ChuckerInterceptor(Context context, ChuckerCollector collector, Long maxContentLength, Set<String> headersToRedact, Boolean alwaysReadResponseBody)
        An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
        Parameters:
        context - An Android Context
        collector - A ChuckerCollector to customize data retention
        maxContentLength - The maximum length for request and response content before their truncation.
        headersToRedact - a Set of headers you want to redact.
        alwaysReadResponseBody - If set to true Chucker will read full content of response bodies even in case of parsing errors or closing the response body without reading it.
      • ChuckerInterceptor

        ChuckerInterceptor(Context context, ChuckerCollector collector, Long maxContentLength, Set<String> headersToRedact)
        An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
        Parameters:
        context - An Android Context
        collector - A ChuckerCollector to customize data retention
        maxContentLength - The maximum length for request and response content before their truncation.
        headersToRedact - a Set of headers you want to redact.
      • ChuckerInterceptor

        ChuckerInterceptor(Context context, ChuckerCollector collector, Long maxContentLength)
        An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
        Parameters:
        context - An Android Context
        collector - A ChuckerCollector to customize data retention
        maxContentLength - The maximum length for request and response content before their truncation.
      • ChuckerInterceptor

        ChuckerInterceptor(Context context, ChuckerCollector collector)
        An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
        Parameters:
        context - An Android Context
        collector - A ChuckerCollector to customize data retention
      • ChuckerInterceptor

        ChuckerInterceptor(Context context)
        An OkHttp Interceptor which persists and displays HTTP activity in your application for later inspection.
        Parameters:
        context - An Android Context