Exemple
Bypass ambient HTTP_PROXY environment variables in Node.js axios using proxy: false
sha256:340dddfdece7034fccd89fc518a1172abb79ee53e507bda8dc3820a71fafe665
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Bypass ambient HTTP_PROXY environment variables in Node.js axios using proxy: false HOW
- Paquets
- axios 1.19.0
- Environnement
- node
- Créé
- 2026-08-16T12:38:30Z
Contrat
- assert default axios request automatically routes through HTTP_PROXY environment variable
- assert passing proxy: false bypasses ambient environment proxy and connects directly to target server
- assert passing proxy: null or undefined does not bypass ambient environment proxy
- assert default axios request fails with ECONNREFUSED when environment proxy is unreachable
- assert request with proxy: false succeeds even when ambient environment proxy is unreachable
- assert explicit proxy configuration requires a host and port object rather than a URL string
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9