Package-level declarations
Types
A configuration for the Compression plugin.
A builder for compression encoder configuration.
An encoder configuration for the Compression plugin.
A configuration for the Compression plugin.
A builder for conditions.
Properties
List of ContentEncoder names that were used to decode request body.
A plugin that provides the capability to compress a response and decompress request bodies. You can use different compression algorithms, including gzip
and deflate
, specify the required conditions for compressing data (such as a content type or response size), or even compress data based on specific request parameters.
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.