|
%!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
HISTORY.md | %!s(int64=5) %!d(string=hai) anos | |
LICENSE | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
index.js | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos |
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)
})
})