Gzip Decompressor (proto)¶
This extension has the qualified name envoy.compression.gzip.decompressor
Note
This extension is intended to be robust against untrusted downstream traffic. It assumes that the upstream is trusted.
Tip
This extension extends and can be used with the following extension category:
This extension must be configured with one of the following type URLs:
extensions.compression.gzip.decompressor.v3.Gzip¶
[extensions.compression.gzip.decompressor.v3.Gzip proto]
{
"window_bits": {...},
"chunk_size": {...},
"max_inflate_ratio": {...}
}
- window_bits
(UInt32Value) Value from 9 to 15 that represents the base two logarithmic of the decompressor’s window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to zlib manual > inflateInit2.
- chunk_size
(UInt32Value) Value for zlib’s decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
- max_inflate_ratio
(UInt32Value) An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100.