popsicle-proxy-agent

Enable proxy support for Popsicle (for node)

Use `agent` option with `popsicle` directly
Last updated 8 years ago by blakeembrey .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install popsicle-proxy-agent 
SYNC missed versions from official npm registry.

Popsicle Proxy Agent

NPM version NPM downloads Build status Test coverage

Generic proxy agent (for Popsicle and node.js).

Installation

npm install popsicle-proxy-agent --save

Usage

var popsicle = require('popsicle')
var createProxy = require('popsicle-proxy-agent')

var proxy = createProxy({
  proxy: '...'
})

popsicle.get({
  url: 'http://example.com',
  transport: popsicle.createTransport({
    agent: proxy('http://example.com')
  })
})

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

Current Tags

  • 3.0.0                                ...           latest (8 years ago)

5 Versions

  • 3.0.0 [deprecated]           ...           8 years ago
  • 2.0.2 [deprecated]           ...           8 years ago
  • 2.0.1 [deprecated]           ...           9 years ago
  • 2.0.0 [deprecated]           ...           9 years ago
  • 1.0.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (11)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE