{"name":"http-proxy-agent","version":"8.0.0","keywords":["http","proxy","endpoint","agent"],"author":{"url":"http://n8.io/","name":"Nathan Rajlich","email":"nathan@tootallnate.net"},"license":"MIT","_id":"http-proxy-agent@8.0.0","maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"homepage":"https://github.com/TooTallNate/proxy-agents#readme","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"dist":{"shasum":"ea48d0b7a5104ce7e82c4b97a44e447e4353ddff","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-8.0.0.tgz","fileCount":7,"integrity":"sha512-7pose0uGgrCJeH2Qh4JcNhWZp3u/oNrWjNYDK4ydOLxOpTw8V8ogHFAmkz0VWq96JBFj4umVJpvmQi287rSYLg==","signatures":[{"sig":"MEUCIC/pThMmMB86AYcbXklLUOWVD4wv9tojKn8uj0cJaZD1AiEApGSmlV/IWbtNrh6htIdxXq+f8ERg/J7UGMA9ZYbts2Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/http-proxy-agent@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15889,"size":5596,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-8.0.0.tgz"},"type":"module","_from":"file:http-proxy-agent-8.0.0.tgz","engines":{"node":">= 14"},"exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"lint":"eslint . --ext .ts","pack":"node ../../scripts/pack.mjs","test":"vitest","build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d2603736-74bc-4bbf-ad96-99a984d8617d"}},"_resolved":"/tmp/fecbc90c7597329b03a5777618113b3a/http-proxy-agent-8.0.0.tgz","_integrity":"sha512-7pose0uGgrCJeH2Qh4JcNhWZp3u/oNrWjNYDK4ydOLxOpTw8V8ogHFAmkz0VWq96JBFj4umVJpvmQi287rSYLg==","repository":{"url":"git+https://github.com/TooTallNate/proxy-agents.git","type":"git","directory":"packages/http-proxy-agent"},"_npmVersion":"11.11.0","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","directories":{},"_nodeVersion":"20.20.0","dependencies":{"debug":"^4.3.4","agent-base":"8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"proxy":"3.0.0","tsconfig":"0.0.0","typescript":"^5.1.6","@types/node":"^22.13.0","@types/debug":"^4.1.7","async-listen":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/http-proxy-agent_8.0.0_1773248323602_0.5561683509005819","host":"s3://npm-registry-packages-npm-production"},"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":1773248323756,"_cnpm_publish_time":1773248323756,"dist-tags":{"latest":"9.1.0"}}