HttpCompressionOptions
HTTP compression configurations.
enabled
booleanOptionalWhether HTTP compression is enabled. By default, it's
false
.level
numberOptionalThe level of zlib compression to apply to responses. A higher level will result in better compression but will take longer to complete.
A lower level will result in less compression but will be much faster. The default value is
6
.memLevel
numberOptionalHow much memory should be allocated to the internal compression state. It's an integer in the range of 1 (minimum level) and 9 (maximum level).
The default value is
8
.threshold
string | numberOptionalWas this page helpful?