Bones/node_modules/popsicle-proxy-agent
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00
..
dist Template Upload 2017-05-17 13:45:25 -04:00
LICENSE Template Upload 2017-05-17 13:45:25 -04:00
package.json Template Upload 2017-05-17 13:45:25 -04:00
README.md Template Upload 2017-05-17 13:45:25 -04:00
typings.json Template Upload 2017-05-17 13:45:25 -04:00

Popsicle Proxy Agent

NPM version NPM downloads Build status Test coverage

Enable proxy support for Popsicle (for node).

Installation

npm install popsicle-proxy-agent --save

Usage

var request = require('popsicle').request
var proxy = require('popsicle-proxy-agent')

request('http://example.com')
  .use(proxy({ proxy: '...' }))
  .then(...)

Options

  • proxy The default HTTP(s) proxy to use
  • httpProxy The proxy for HTTP requests (default: process.env.HTTP_PROXY)
  • httpsProxy The proxy for HTTPS requests (default: process.env.HTTPS_PROXY)
  • noProxy A string of space-separated hosts to not proxy (default: process.env.NO_PROXY)

License

Apache 2.0