A flowHttp extension used for decoding gzip og deflate encoded HTTP responses
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

flowHttp-decoder

A flowHttp extension used for decoding gzip og deflate encoded HTTP responses.

build
status

Install

npm install flowhttp-decoder

Usage

This module is intended to be used with the flowHttp module.

Use this module to create a Decoder stream. If piped data from a flowHttp request, it will detect if the response is encoded using either gzip og deflate and automatically decode it. If the body isn't encoded using one of these encodings, it's just passed through the stream without any modifications.

var flowHttp = require('flowhttp');
var Decoder = require('flowhttp-decoder');

flowHttp('http://example.com')
  .pipe(new Decoder())
  .pipe(process.stdout);

License

MIT