CompressionConfig
A configuration for the Compression plugin.
Properties
Preconditions applied to every response object to check if it should be compressed.
Provides access to a map of encoders.
The maximum size (in bytes) of the decoded request body.
The maximum number of chained content encodings that will be decoded automatically.
Specifies if the plugin should compress response, decompress request, or both.
Functions
Appends a custom condition to the encoder or the Compression configuration. A predicate returns true when a response need to be compressed. If at least one condition is not met, a response isn't compressed.
Appends the deflate encoder with the block configuration and the 0.9 priority.
Appends a content type exclusion condition to the encoder or the Compression configuration.
Appends the gzip encoder with the block configuration.
Appends the identity encoder with the block configuration.
Appends a content type condition to the encoder or the Compression configuration.
Appends a minimum size condition to the encoder or the Compression configuration.