Added support for HTTP response compression and this PR adds two filters compressHTTP and compressMessage. Both of these filters are configurable via options object. Documentation for these two filters is added as well.
Options
There are options you can use in the options parameter to configure compression method, compression level:
enabled - Toggle compression mode. Boolean flag either true or false. default is true.
method - Compression method to use. It need to be one of deflate, gzip, and brotli. default is gzip.
level - Compression level settings. It need to be one of default, none, speed, best. default is default.
Added support for HTTP response compression and this PR adds two filters
compressHTTP
andcompressMessage
. Both of these filters are configurable viaoptions
object. Documentation for these two filters is added as well.Options
There are options you can use in the options parameter to configure compression method, compression level:
true
orfalse
. default is true.deflate
,gzip
, andbrotli
. default is gzip.default
,none
,speed
,best
. default is default.