Gzip

This documentation is for the Envoy v3 API.

As of Envoy v1.18 the v2 API has been removed and is no longer supported.

If you are upgrading from v2 API config you may wish to view the v2 API documentation:

extensions.filters.http.gzip.v3.Gzip

[extensions.filters.http.gzip.v3.Gzip proto]

{
  "memory_level": "{...}",
  "compression_level": "...",
  "compression_strategy": "...",
  "window_bits": "{...}",
  "compressor": "{...}",
  "chunk_size": "{...}"
}
memory_level

(UInt32Value) Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values use more memory, but are faster and produce better compression results. The default value is 5.

compression_level

(extensions.filters.http.gzip.v3.Gzip.CompressionLevel.Enum) A value used for selecting the zlib compression level. This setting will affect speed and amount of compression applied to the content. “BEST” provides higher compression at the cost of higher latency, “SPEED” provides lower compression with minimum impact on response time. “DEFAULT” provides an optimal result between speed and compression. This field will be set to “DEFAULT” if not specified.

compression_strategy

(extensions.filters.http.gzip.v3.Gzip.CompressionStrategy) A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content. Most of the time “DEFAULT” will be the best choice, though there are situations which changing this parameter might produce better results. For example, run-length encoding (RLE) is typically used when the content is known for having sequences which same data occurs many consecutive times. For more information about each strategy, please refer to zlib manual.

window_bits

(UInt32Value) Value from 9 to 15 that represents the base two logarithmic of the compressor’s window size. Larger window results in better compression at the expense of memory usage. The default is 12 which will produce a 4096 bytes window. For more details about this parameter, please refer to zlib manual > deflateInit2.

compressor

(extensions.filters.http.compressor.v3.Compressor) Set of configuration parameters common for all compression filters. You can define content_length, content_type and other parameters in this field.

chunk_size

(UInt32Value) Value for Zlib’s next output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details. Also see https://github.com/envoyproxy/envoy/issues/8448 for context on this filter’s performance.

extensions.filters.http.gzip.v3.Gzip.CompressionLevel

[extensions.filters.http.gzip.v3.Gzip.CompressionLevel proto]

Enum extensions.filters.http.gzip.v3.Gzip.CompressionLevel.Enum

[extensions.filters.http.gzip.v3.Gzip.CompressionLevel.Enum proto]

DEFAULT

(DEFAULT)

BEST

SPEED

Enum extensions.filters.http.gzip.v3.Gzip.CompressionStrategy

[extensions.filters.http.gzip.v3.Gzip.CompressionStrategy proto]

DEFAULT

(DEFAULT)

FILTERED

HUFFMAN

RLE