{"name":"http-proxy-agent","version":"3.0.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":"5","debug":"4"},"devDependencies":{"mocha":"3","proxy":"1"},"engines":{"node":">= 6"},"gitHead":"18b10c807fda63744b08c971f0dcce1620672fc5","homepage":"https://github.com/TooTallNate/node-http-proxy-agent#readme","_id":"http-proxy-agent@3.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-uGuJaBWQWDQCJI5ip0d/VTYZW0nRrlLWXA4A7P1jrsa+f77rW2yXz315oBt6zGCF6l8C2tlMxY7ffULCj+5FhA==","shasum":"598f42dc815949a11e2c6dbfdf24cd8a4c165327","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-3.0.0.tgz","fileCount":3,"unpackedSize":7162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8APuCRA9TVsSAnZWagAA61AP/jAgKtiqf1dQZOFw28c0\n0Box15cE0xr8oR+PKdGrzKTZ2JKE3HFF3Ak8/USlxXlLIiQ/yQuY2uqH/O0Q\nlZKwOOOR3blKyYs+7ivEgVFCnxm1nesYiYgOYM+wchijHD5EyTKZe6FUpJeF\n1/3Qav4gFXGLthlrxr0QhBrtfMolZPok6Xl5PXKZG0IkyYb1JxNM42ixZB/j\nYfzR2Y5/s5Tkf/B77Gh6YjDrMC87QJB8FQnMyP42XFvpHe4TAzmKkKJSw/Bo\nzUBkFwfzAMzb/wGPZxxUD2D8iwBiSf7ahtE1/69LclzUZrTrLqbbuRLbXAhQ\nf4GUDr7Ks7ZPSDX3cpQnmHCOECo4P9nxl3YvEYDbq9sN8YjEpc9msHmTnvEp\nIQ0u8TV/fngsfKNjm/FZ2Z8meM2HYD2Qox2YA+o9mU29oGbHsiEI5j/J1HQd\n3RnOMGIU9n53sVwPE20fCkrsvWS6hvRDDO/xZ+hEDNgfXjSnofU6dxx6eBAE\nl5DJXJ9NtPeUDU8zLzyhoY+SaMKvYLWlcsHH4T3G2frZnc+YvGQh95I6YTYj\nIURKERALwWbTRyHxRZbqJVmIc99fXhzk4rakVSUF/RD1SRutB48m0kzvS5nU\n4YzevScOR16c1WkYCRetjsozi1IWYfBQoAh6TJNxKZg90gTta4EXTpBSAiND\nymjh\r\n=qCvJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxyhLglNLibrCXTZhQSLsjV+rgFuDC9zWGnp0FcIZT2AiEAoLemEwxaIUp3mRK90jleLGb3hfW1HLYDrEGy9ACCoV4="}],"size":3112,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-3.0.0.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-proxy-agent_3.0.0_1576010734363_0.4646106516724142"},"_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":1576010734500,"_cnpm_publish_time":1576010734500,"dist-tags":{"latest":"9.1.0"}}