{"name":"http-proxy-agent","version":"6.0.0","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","main":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/TooTallNate/proxy-agents.git","directory":"packages/http-proxy-agent"},"keywords":["http","proxy","endpoint","agent"],"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","dependencies":{"agent-base":"^7.0.0","debug":"^4.3.4"},"devDependencies":{"@types/debug":"^4.1.7","@types/jest":"^29.5.1","@types/node":"^14.18.43","async-listen":"^2.1.0","jest":"^29.5.0","ts-jest":"^29.1.0","typescript":"^5.0.4","proxy":"2.0.0","tsconfig":"0.0.0"},"engines":{"node":">= 14"},"scripts":{"build":"tsc","test":"jest --env node --verbose --bail","lint":"eslint . --ext .ts","pack":"node ../../scripts/pack.mjs"},"bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"homepage":"https://github.com/TooTallNate/proxy-agents#readme","_id":"http-proxy-agent@6.0.0","_integrity":"sha512-tmlr1P183cfJxzneOlOnQrv4hMkOBcTow1rjlT3tnaJbJGlz4xnZuOEAvHFfKqX5RhvIxkCABPQHo3tQEj3ouw==","_resolved":"/tmp/88b9c7ca209573081add7f8537601542/http-proxy-agent-6.0.0.tgz","_from":"file:http-proxy-agent-6.0.0.tgz","_nodeVersion":"20.1.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-tmlr1P183cfJxzneOlOnQrv4hMkOBcTow1rjlT3tnaJbJGlz4xnZuOEAvHFfKqX5RhvIxkCABPQHo3tQEj3ouw==","shasum":"be482ebcfea1d9c13e8a756821f813eb1cefca6d","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-6.0.0.tgz","fileCount":8,"unpackedSize":20608,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8ZaokKmuGs9hCYyLGS+gpcQJgSpdpVK/ytLz3LUDPIAiEAv1pcYEZuLLRUCtzAS8vR5wZVQ1OXoWJ2LMCj9oedDI4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVBaPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSrw/+IsZmWGQR6llxj1VAFjiuJX+1P8PLgBGetJKZCt3U0YJGQEz1\r\nThrvHw/ioQxSeI6bjAfr+XUAvylCwK6par6ZE+VJOCuIV0nRL/33CwlwyCEY\r\nGETmdVYjOse7qNUvz1MroRuRix8sE0ta0tPAja/clz4JU8D4scnimIGxBGXH\r\npeUhST6E56h7wtNo1aoYO146U2aTQfDRyneOwQWuXWCOvcTKAJmNlEcobWzo\r\nTuyK8K/ocevCI7JizH50e+RcZaQFivbYD81aiAjgB08sPvlH6b2E8S7xpLuc\r\nvaKhBeAOEWpTz656EcShyicrmjTmo+rrem3aS9aQYYUfbXhA7Bf30dTagY4w\r\nyeqC0DHDTwh52EXmRRwK0jvRSmZrtAbHuJUUDXlvhgAFuPEzsJtkIly9SGEX\r\nuPOmu+GfNiX8fQWMLUK7DtUzsPYQhLJ+/cJoxoS2MmfrLJo8dKzR97GDKhAd\r\n8wV5td2B8LZX4Ku7rItV+q3n11pap22xw4VZ8kmqJeXC01jKn3GS6nnn7g4R\r\n6LPGVdd8wuQncSJ6J/+oO/imKljX1MjyV46W2c9zibeDBUt+Jby6kvZY4b83\r\nxLhTTZ4uSVXeqJjSY2b7uZbn+O7eiegOJ1qH1JMjgIOe+XAS3ROJzIy1oOqK\r\niGwwgzD3Jl61WhEHHx49BkgjMDy8TNdIvEc=\r\n=kyW3\r\n-----END PGP SIGNATURE-----\r\n","size":5446,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-6.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_6.0.0_1683232399624_0.9371146031907209"},"_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":1683232399763,"_cnpm_publish_time":1683232399763,"dist-tags":{"latest":"9.1.0"}}