{"name":"@actions/http-client","version":"4.0.1","keywords":["github","actions","http"],"license":"MIT","_id":"@actions/http-client@4.0.1","maintainers":[{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"thboop","email":"thboop@github.com"},{"name":"ericsciple","email":"ericsciple@github.com"},{"name":"bdehamer","email":"brian@dehamer.com"}],"homepage":"https://github.com/actions/toolkit/tree/main/packages/http-client","bugs":{"url":"https://github.com/actions/toolkit/issues"},"dist":{"shasum":"22a23a7625ba1326d9ba154012ca8301a27f88a3","tarball":"http://registry-npm.ywwl.com/@actions/http-client/download/@actions/http-client-4.0.1.tgz","fileCount":15,"integrity":"sha512-+Nvd1ImaOZBSoPbsUtEhv+1z99H12xzncCkz0a3RuehINE81FZSe2QTj3uvAPTcJX/SCzUQHQ0D1GrPMbrPitg==","signatures":[{"sig":"MEYCIQC+qI3RAT2BO+LpYMGGzUhbVUotOi8cygeyOw6f8Ubf2wIhAK4xvb1tZYi7jDQfBbpafupjc4qRIlKZORGK38bw4kMr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fhttp-client@4.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76194,"size":17834,"noattachment":false,"key":"/@actions/http-client/-/@actions/http-client-4.0.1.tgz"},"main":"lib/index.js","type":"module","_from":"file:actions-http-client-4.0.1.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":"/home/runner/work/toolkit/toolkit/actions-http-client-4.0.1.tgz","overrides":{"uri-js":"npm:uri-js-replace@^1.0.1"},"_integrity":"sha512-+Nvd1ImaOZBSoPbsUtEhv+1z99H12xzncCkz0a3RuehINE81FZSe2QTj3uvAPTcJX/SCzUQHQ0D1GrPMbrPitg==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/http-client"},"_npmVersion":"11.12.1","description":"Actions Http Client","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"24.15.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.1_1776807746670_0.08691991844138913","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":1776807746809,"_cnpm_publish_time":1776807746809,"dist-tags":{"latest":"4.0.1"}}