decompress-request
Decompress an incoming HTTP request if needed.
Decompresses an incoming http request if it's gzipped, deflated or compressed with Brotli, otherwise just passes it through.
Install
npm install --save decompress-request
Usage
const http = const raw = const decompressRequest = const server = http server
API
decompressRequest
Decompresses an incoming HTTP request body stream if needed.
Type: function (request): IncomingMessage
request
IncomingMessage
Related
- decompress-response - Same as this module but for handling http responses.
- inflation - Same as this module but doesn't handle Brotli.
License
MIT © Travis Fischer