![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | HISTORY.md | 9 years ago | 338 | |
![]() | LICENSE | 9 years ago | 1.1K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
![]() | README.md | 9 years ago | 925 | f12eb36 documentaiton updates [كارل مبارك] |
![]() | index.js | 9 years ago | 637 | |
![]() | package.json | 2 years ago | 1.7K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
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)
})
})