Exemple
Outbound requests ignore HTTP_PROXY unless EnvHttpProxyAgent is explicitly configured, where lowercase env var spelling wins and HTTP proxy acts as fallback for HTTPS but not vice versa
sha256:c5f7d661b349b93b5d644271e2edd085fbcb52460bdd7105e5fec9f64148e1de
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Outbound requests ignore HTTP_PROXY unless EnvHttpProxyAgent is explicitly configured, where lowercase env var spelling wins and HTTP proxy acts as fallback for HTTPS but not vice versa HOW
- Paquets
- undici 8.10.0
- Environnement
- node
- Créé
- 2026-08-14T22:45:01Z
Contrat
- assert getGlobalDispatcher() defaults to an unproxied Agent that ignores proxy environment variables
- assert ProxyAgent throws without an explicit uri whereas EnvHttpProxyAgent loads from environment
- assert lowercase http_proxy takes precedence over uppercase HTTP_PROXY
- assert omitted https_proxy falls back to http_proxy but omitted http_proxy leaves HTTP direct
- assert no_proxy rules bypass proxy dispatching for matched hostnames, subdomains, and ports
- assert process.env.no_proxy is evaluated dynamically on each dispatch while proxy URIs are bound at construction
- assert setGlobalDispatcher(new EnvHttpProxyAgent()) activates environment-driven proxying
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- 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-14 · ed25519:ac1544ece1e22594