Gzip

This extension may be referenced by the qualified name envoy.filters.http.gzip

Note

This extension is intended to be robust against untrusted downstream traffic. It assumes that the upstream is trusted.

Gzip configuration overview.

extensions.filters.http.gzip.v3.Gzip

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

{
  "memory_level": "{...}",
  "compression_level": "...",
  "compression_strategy": "...",
  "window_bits": "{...}",
  "compressor": "{...}"
}
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. If this field is set then the fields content_length, content_type, disable_on_etag_header and remove_accept_encoding_header are ignored.

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