Skip to content
Permalink
Browse files

Brotli Interceptor docs

  • Loading branch information...
yschimke committed Aug 23, 2019
1 parent e40915b commit 1d293fa06246ae4e05c367df1d4bdf4df450fa4b
Showing with 17 additions and 1 deletion.
  1. +17 −1 okhttp-brotli/README.md
@@ -1,4 +1,20 @@
OkHttp Brotli Implementation
============================

This module is an implementation of Brotli compression.
This module is an implementation of [Brotli][1] compression.
It enables Brotli support in addition to tranparent Gzip support,
provided Accept-Encoding is not set previously. Modern web servers
must choose to return Brotli responses. n.b. It is not used for
sending requests.

```java
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(BrotliInterceptor.INSTANCE)
.build();
```

```kotlin
implementation("com.squareup.okhttp3:okhttp-brotli:4.1.0")
```

[1]: https://github.com/google/brotli

0 comments on commit 1d293fa

Please sign in to comment.
You can’t perform that action at this time.