Brotli Compressor (proto)¶
This extension has the qualified name envoy.compression.brotli.compressor
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.brotli.compressor.v3.Brotli¶
[extensions.compression.brotli.compressor.v3.Brotli proto]
{
"quality": {...},
"encoder_mode": ...,
"window_bits": {...},
"input_block_bits": {...},
"chunk_size": {...},
"disable_literal_context_modeling": ...
}
- quality
(UInt32Value) Value from 0 to 11 that controls the main compression speed-density lever. The higher quality, the slower compression. The default value is 3.
- encoder_mode
(extensions.compression.brotli.compressor.v3.Brotli.EncoderMode) A value used to tune encoder for specific input. For more information about modes, please refer to brotli manual: https://brotli.org/encode.html#aa6f This field will be set to “DEFAULT” if not specified.
- window_bits
(UInt32Value) Value from 10 to 24 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 18. For more details about this parameter, please refer to brotli manual: https://brotli.org/encode.html#a9a8
- input_block_bits
(UInt32Value) Value from 16 to 24 that represents the base two logarithmic of the compressor’s input block size. Larger input block results in better compression at the expense of memory usage. The default is 24. For more details about this parameter, please refer to brotli manual: https://brotli.org/encode.html#a9a8
- chunk_size
(UInt32Value) Value for compressor’s next output buffer. If not set, defaults to 4096.
- disable_literal_context_modeling
(bool) If true, disables “literal context modeling” format feature. This flag is a “decoding-speed vs compression ratio” trade-off.
Enum extensions.compression.brotli.compressor.v3.Brotli.EncoderMode¶
[extensions.compression.brotli.compressor.v3.Brotli.EncoderMode proto]
- DEFAULT
(DEFAULT)
- GENERIC
- TEXT
- FONT