{"name":"http-proxy-agent","version":"5.0.0","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"prebuild":"rimraf dist","build":"tsc","test":"mocha","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"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":{"@tootallnate/once":"2","agent-base":"6","debug":"4"},"devDependencies":{"@types/debug":"4","@types/node":"^12.19.2","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.2","proxy":"1","rimraf":"^3.0.0","typescript":"^4.4.3"},"engines":{"node":">= 6"},"gitHead":"5368fa899134a9b0d7d49cc6917c1eecabe7aeb0","homepage":"https://github.com/TooTallNate/node-http-proxy-agent#readme","_id":"http-proxy-agent@5.0.0","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==","shasum":"5129800203520d434f142bc78ff3c170800f2b43","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-5.0.0.tgz","fileCount":8,"unpackedSize":17084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2ttKCRA9TVsSAnZWagAA7z4P/0eQaTAhdbMZa/SqMuLO\nW2ZkLGodNKTfKsY8NQmtnxOIkXTxAFoHAnxpXFQC+tn9ss1PsSXMbhF1Hw5g\nx4tC3Y1bpAia2e07/K8ZFKcczl77Fs0XWupa4D3CxTMISGrH39D5UzummxT1\n37gL2l6kU3oOOlG1o79LT2YWYy/a9dayVf0AY3fTO3kATRsExB6aILnLrlJU\nxOIZxev/o2sCjA3g52CW0P1+bXA2d0o5GzM2ua7g7PvzIut90crCSs/bCEz/\nLt8HXWsMZzb/h6uPhDy6WhAwOatJyOaOoJQtP6hQsm23brn6fcWgBwnKVEZ5\nxlEsyvzdjAH+oZLMt19UMK3Wsr0MFe62zb9xo3iZc3+TjKfUGxSOPFzyFNHl\npXzb40mNSvpnqJMSxRMZQ8C342EULSqvbXEQIbvZCtIzxD/PrsrihZUhn5Ib\n5sTD4XwF7NvNxqH5DfOxhZ1gvgrDKPdxPyLva5y8ZyQwTdutNucYZmDsKG6/\nr/ioYp04gOGiaTT5HXTG3Vwd1OQOsI8m7qsdf8wG6L684v1s8O1zff9Uy887\n9WhQvlJ23//J4C7qJLK+mXvzTJXjIL17nocf/viVgNjqDcbPcKN/NvgBjier\nZSL7cFIY8NKxTxVd0Nl2mPVUmpuzfkCWZQJ3fefBMkEEOfKs6IUBD2mgUmM6\nr78a\r\n=PORT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3UsOQpVrBKtPPwLPfF0kjTmHG0jvMuM4YUqHMbWbsOAiA6kMpRZy6XfljC5TVMASmSZIbB3AEDYwAWjNUZeX20oQ=="}],"size":5854,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-proxy-agent_5.0.0_1632357349840_0.04943823300760486"},"_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":1632357350066,"_cnpm_publish_time":1632357350066,"dist-tags":{"latest":"9.1.0"}}