vapr-decompress
Installation
npm install --save vaprnpm install --save vapr-decompress
Usage
This plugin decompresses the request body based on the Content-Encoding and Transfer-Encoding headers.
const decompress = ;const app = ;const route = app; route;route;
Options
The transferOnly
option can be used to leave Content-Encodings intact (i.e., the request body will only be decoded based on the Transfer-Encoding header).
route;
Any other options passed to the plugin are forwarded to the zlib core module.