compress
compress: (
options?) =>Function
Defined in: http/compress.js:46
Creates a response compression middleware.
Parameters
Section titled “Parameters”options?
Section titled “options?”Compression configuration
encodings?
Section titled “encodings?”string[] = ...
Supported encodings in priority order
threshold?
Section titled “threshold?”number = 1024
Minimum byte size before compression is applied
Returns
Section titled “Returns”Function
- Ergo middleware
(req, res) => voidthat wrapsres.write/res.end