{"name":"http-proxy-agent","version":"2.1.0","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","main":"./index.js","scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-http-proxy-agent.git"},"keywords":["http","proxy","endpoint","agent"],"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","bugs":{"url":"https://github.com/TooTallNate/node-http-proxy-agent/issues"},"dependencies":{"agent-base":"4","debug":"3.1.0"},"devDependencies":{"mocha":"3","proxy":"~0.2.3"},"engines":{"node":">= 4.5.0"},"gitHead":"65307ac8fe4e6ce1a2685d21ec4affa4c2a0a30d","homepage":"https://github.com/TooTallNate/node-http-proxy-agent#readme","_id":"http-proxy-agent@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"dist":{"integrity":"sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==","shasum":"e4821beef5b2142a2026bd73926fe537631c5405","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-2.1.0.tgz","fileCount":8,"unpackedSize":20854,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfwepzuGIVHhvzBgrsDQUwWZQ1kXbfkiJOzyDbnX1phAiAkxxZyCk7KzZu2+JYL6aTjvyYe4fzqmZi6P34D8gf4UA=="}],"size":7116,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-proxy-agent_2.1.0_1520120979376_0.982711299283987"},"_hasShrinkwrap":false,"readme":"http-proxy-agent\n================\n### An HTTP(s) proxy `http.Agent` implementation for HTTP\n\nThis module provides an `http.Agent` implementation that connects to a specified\nHTTP or HTTPS proxy server, and can be used with the built-in `http` module.\n\n__Note:__ For HTTP proxy usage with the `https` module, check out\n[`https-proxy-agent`](../https-proxy-agent).\n\n\nExample\n-------\n\n```ts\nimport * as http from 'http';\nimport { HttpProxyAgent } from 'http-proxy-agent';\n\nconst agent = new HttpProxyAgent('http://168.63.76.32:3128');\n\nhttp.get('http://nodejs.org/api/', { agent }, (res) => {\n  console.log('\"response\" event!', res.headers);\n  res.pipe(process.stdout);\n});\n```\n\nAPI\n---\n\n### new HttpProxyAgent(proxy: string | URL, options?: HttpProxyAgentOptions)\n\nThe `HttpProxyAgent` class implements an `http.Agent` subclass that connects\nto the specified \"HTTP(s) proxy server\" in order to proxy HTTP requests.\n\nThe `proxy` argument is the URL for the proxy server.\n\nThe `options` argument accepts the usual `http.Agent` constructor options, and\nsome additional properties:\n\n * `headers` - Object containing additional headers to send to the proxy server\n   in each request. This may also be a function that returns a headers object.\n  \n   **NOTE:** If your proxy does not strip these headers from the request, they\n   will also be sent to the destination server.","publish_time":1520120980465,"_cnpm_publish_time":1520120980465,"dist-tags":{"latest":"9.1.0"}}