{"name":"http-proxy-agent","version":"9.1.0","type":"module","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","exports":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"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":{"debug":"^4.3.4","agent-base":"9.0.0","proxy-agent-negotiate":"1.1.0"},"devDependencies":{"@types/debug":"^4.1.7","@types/node":"^22.13.0","async-listen":"^3.0.0","typescript":"^5.1.6","tsconfig":"0.0.0","proxy":"4.1.0"},"engines":{"node":">= 20"},"scripts":{"build":"tsc","test":"vitest","lint":"eslint . --ext .ts","pack":"node ../../scripts/pack.mjs"},"_id":"http-proxy-agent@9.1.0","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"homepage":"https://github.com/TooTallNate/proxy-agents#readme","_integrity":"sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==","_resolved":"/tmp/54e18d6f1e4f952bb0f355d091c5008e/http-proxy-agent-9.1.0.tgz","_from":"file:http-proxy-agent-9.1.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"11.16.0","dist":{"integrity":"sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==","shasum":"fd8b39dcb58ac8046139e5f4ea80de78e8beaf7b","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-9.1.0.tgz","fileCount":7,"unpackedSize":17632,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/http-proxy-agent@9.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCLD/mRuLDKiTLRM1juziGVgNL8wCTJCMBKaKuapDUY3gIhAJzzChLf5rCFRsdDl4bl42iOZe81WN53TEZpxhsahVAo"}],"size":5983,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d2603736-74bc-4bbf-ad96-99a984d8617d"}},"directories":{},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/http-proxy-agent_9.1.0_1780937244071_0.23526695768300998"},"_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":1780937244200,"_cnpm_publish_time":1780937244200,"dist-tags":{"latest":"9.1.0"}}