{"name":"@actions/http-client","version":"4.0.0","keywords":["github","actions","http"],"license":"MIT","_id":"@actions/http-client@4.0.0","maintainers":[{"name":"chrispat","email":"chrispat@github.com"},{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"thboop","email":"thboop@github.com"},{"name":"konradpabjan","email":"konradpabjan@github.com"},{"name":"cschleiden","email":"cschleiden@outlook.com"},{"name":"bdehamer","email":"brian@dehamer.com"},{"name":"joshmgross","email":"joshmgross@github.com"}],"homepage":"https://github.com/actions/toolkit/tree/main/packages/http-client","bugs":{"url":"https://github.com/actions/toolkit/issues"},"dist":{"shasum":"f9754133c22802466482bf96321d42f2dba1fc82","tarball":"http://registry-npm.ywwl.com/@actions/http-client/download/@actions/http-client-4.0.0.tgz","fileCount":15,"integrity":"sha512-QuwPsgVMsD6qaPD57GLZi9sqzAZCtiJT8kVBCDpLtxhL5MydQ4gS+DrejtZZPdIYyB1e95uCK9Luyds7ybHI3g==","signatures":[{"sig":"MEQCIFp1wDh8M2ehH6qf09b3z1AmD9akWGbI91qn/wqtonFZAiBy7etpbVAZF4Hoqr9SnNI6A9Ta9Vy6PZngMQDsgaRdng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fhttp-client@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76194,"size":17834,"noattachment":false,"key":"/@actions/http-client/-/@actions/http-client-4.0.0.tgz"},"main":"lib/index.js","type":"module","_from":"file:actions-http-client-4.0.0.tgz","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/index.js"},"./lib/auth":{"types":"./lib/auth.d.ts","import":"./lib/auth.js"},"./lib/proxy":{"types":"./lib/proxy.d.ts","import":"./lib/proxy.js"},"./lib/interfaces":{"types":"./lib/interfaces.d.ts","import":"./lib/interfaces.js"}},"scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","format":"prettier --write **/*.ts","format-check":"prettier --check **/*.ts","audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4907f28b-6b9e-4ba8-8b8b-7a9792e81b22"}},"_resolved":"/Users/runner/work/toolkit/toolkit/actions-http-client-4.0.0.tgz","overrides":{"uri-js":"npm:uri-js-replace@^1.0.1"},"_integrity":"sha512-QuwPsgVMsD6qaPD57GLZi9sqzAZCtiJT8kVBCDpLtxhL5MydQ4gS+DrejtZZPdIYyB1e95uCK9Luyds7ybHI3g==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/http-client"},"_npmVersion":"11.6.2","description":"Actions Http Client","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"24.13.0","dependencies":{"tunnel":"^0.0.6","undici":"^6.23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"proxy":"^2.1.1","@types/node":"24.1.0","@types/proxy":"^1.0.1","@types/tunnel":"0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/http-client_4.0.0_1769617168081_0.3544680864141103","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@actions/http-client`\n\nA lightweight HTTP client optimized for building actions.\n\n## Features\n\n  - HTTP client with TypeScript generics and async/await/Promises\n  - Typings included!\n  - [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner\n  - Targets ES2019 (runner runs actions with node 24+).  Only supported on node 20+.\n  - Basic, Bearer and PAT Support out of the box.  Extensible handlers for others.\n  - Redirects supported\n\nFeatures and releases [here](./RELEASES.md)\n\n## Install\n\n```\nnpm install @actions/http-client --save\n```\n\n## Samples\n\nSee the [tests](./__tests__) for detailed examples.\n\n## Errors\n\n### HTTP\n\nThe HTTP client does not throw unless truly exceptional.\n\n* A request that successfully executes resulting in a 404, 500 etc... will return a response object with a status code and a body.\n* Redirects (3xx) will be followed by default.\n\nSee the [tests](./__tests__) for detailed examples.\n\n## Debugging\n\nTo enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible:\n\n```shell\nexport NODE_DEBUG=http\n```\n\n## Node support\n\nThe http-client is built using Node 24. It may work on previous node LTS versions but it's tested and officially supported on Node 20+.\n\n## Support and Versioning\n\nWe follow semver and will hold compatibility between major versions and increment the minor version with new features and capabilities (while holding compat).\n\n## Contributing\n\nWe welcome PRs.  Please create an issue and if applicable, a design before proceeding with code.\n\nonce:\n\n```\nnpm install\n```\n\nTo build:\n\n```\nnpm run build\n```\n\nTo run all tests:\n\n```\nnpm test\n```\n","publish_time":1769617168236,"_cnpm_publish_time":1769617168236,"dist-tags":{"latest":"4.0.1"}}