1/*
2Package acceptencoding provides customizations associated with Accept Encoding Header.
3
4# Accept encoding gzip
5
6The Go HTTP client automatically supports accept-encoding and content-encoding
7gzip by default. This default behavior is not desired by the SDK, and prevents
8validating the response body's checksum. To prevent this the SDK must manually
9control usage of content-encoding gzip.
10
11To control content-encoding, the SDK must always set the `Accept-Encoding`
12header to a value. This prevents the HTTP client from using gzip automatically.
13When gzip is enabled on the API client, the SDK's customization will control
14decompressing the gzip data in order to not break the checksum validation. When
15gzip is disabled, the API client will disable gzip, preventing the HTTP
16client's default behavior.
17
18An `EnableAcceptEncodingGzip` option may or may not be present depending on the client using
19the below middleware. The option if present can be used to enable auto decompressing
20gzip by the SDK.
21*/
22package acceptencoding