This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
argo-gzip with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Now you can gzip with a simple argo middleware!
var argo = require("argo"), gzip = require("argo-gzip"); argo() .use(gzip) .target("http://www.endpointAPI.com/"); //Now all request that come in with a "Accept-Encoding:gzip" header will be zipped //All responses that are from the backend server that are gzipped are handled now as well