inflation
inflation
Automatically unzip an HTTP stream.
API
var inflate =
inflate(stream, options)
Returns a stream that emits inflated data from the given stream.
Options:
encoding
- The encoding of the stream (gzip
ordeflate
). If not given, will look instream.headers['content-encoding']
.
Example
var inflate = var raw = http