Popsicle middleware for supporting
Content-Encoding
compression.
npm install popsicle-content-encoding --save
import { contentEncoding } from "popsicle-content-encoding";
const middleware = compose([contentEncoding(), transport()]);
Automatically populates Accept-Encoding
based on node.js supported decompression algorithms, then decodes the matching response body. Does nothing if Accept-Encoding
is already set.
This project is written using TypeScript and publishes the definitions directly to NPM.
MIT