okhttp-brotli / okhttp3.brotli / BrotliInterceptor

BrotliInterceptor

object BrotliInterceptor : Interceptor

Transparent Brotli response support.

Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in responses. n.b. this replaces the transparent gzip compression in BridgeInterceptor.

Functions

Name Summary
intercept fun intercept(chain: Chain): Response