public class RemoveAcceptEncodingConfigurator extends java.lang.Object implements OkHttpClientConfigurator
DatabaseClientFactory.addConfigurator
to remove the
"Accept-Encoding=gzip" request header that the underlying OkHttp
library adds by default. This is useful in a scenario where many
small HTTP responses are expected to be returned by MarkLogic, and
thus the costs of gzipping the responses may outweigh the
benefits.Constructor and Description |
---|
RemoveAcceptEncodingConfigurator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(okhttp3.OkHttpClient.Builder builder)
Called as the last step in configuring the
communication library.
|
public void configure(okhttp3.OkHttpClient.Builder builder)
DatabaseClientFactory.ClientConfigurator
configure
in interface DatabaseClientFactory.ClientConfigurator<okhttp3.OkHttpClient.Builder>
builder
- the configurable object for the
communication libraryCopyright © 2024 MarkLogic Corporation. All Rights Reserved.