Repository URL to install this package:
|
Version:
1.0.0-1 ▾
|
vending-octopus-service-dep
/
usr
/
local
/
lib
/
vending
/
octopus
/
service
/
node_modules
/
inflation
|
|---|
| .. |
| index.js |
| package.json |
| HISTORY.md |
| LICENSE |
| README.md |
Automatically unzip an HTTP stream.
var inflate = require('inflation')
Returns a stream that emits inflated data from the given stream.
Options:
encoding - The encoding of the stream (gzip or deflate).
If not given, will look in stream.headers['content-encoding'].var inflate = require('inflation') var raw = require('raw-body') http.createServer(function (req, res) { raw(inflate(req), 'utf-8', function (err, string) { console.dir(string) }) })