Socket
Book a DemoInstallSign in
Socket

flowhttp-decoder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowhttp-decoder

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

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

flowhttp

FAQs

Package last updated on 27 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts