Socket
Socket
Sign inDemoInstall

proxy-agent

Package Overview
Dependencies
9
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

5

History.md
0.0.2 / 2013-11-20
==================
* index: walk up the prototype chain to get the proxy types
0.0.1 / 2013-11-20

@@ -3,0 +8,0 @@ ==================

3

index.js

@@ -67,3 +67,4 @@

if (!protocol) {
var types = Object.keys(exports.proxies);
var types = [];
for (var type in proxies) types.push(type);
throw new TypeError('you must specify a string "protocol" for the proxy type (' + types.join(', ') + ')');

@@ -70,0 +71,0 @@ }

{
"name": "proxy-agent",
"version": "0.0.1",
"version": "0.0.2",
"description": "Maps proxy protocols to `http.Agent` implementations",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,10 +8,15 @@ proxy-agent

Built-in are `http`, `https` and `socks` proxy agents. You can also define
arbitrary proxy URI protocol handlers by adding a function that returns an
`http.Agent` subclass for the desired "protocol".
An LRU cache is used so that `http.Agent` instances are transparently re-used for
subsequent HTTP requests to the same proxy server.
The currently implemented protocol mappings are listed in the table below:
| Protocol | Proxy Agent for `http` requests | Proxy Agent for `https` requests | Example
|:---------:|:-------------------------------:|:--------------------------------:|:--------:
| `http` | [http-proxy-agent][] | [https-proxy-agent][] | `http://proxy-server-over-tcp.com:3128`
| `https` | [http-proxy-agent][] | [https-proxy-agent][] | `https://proxy-server-over-tls.com:3129`
| `socks` | [socks-proxy-agent][] | [socks-proxy-agent][] | `socks://some-socks-proxy.com:9050`
Installation

@@ -90,1 +95,6 @@ ------------

SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent
[https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
[socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc