* True when an HTTP/HTTPS-scheme proxy is configured — via `HTTP_PROXY`, * `HTTPS_PROXY`, or an http-scheme `ALL_PROXY` (the catch-all fallback).
(env: Env)
| 56 | * `HTTPS_PROXY`, or an http-scheme `ALL_PROXY` (the catch-all fallback). |
| 57 | */ |
| 58 | function hasHttpProxy(env: Env): boolean { |
| 59 | return [ |
| 60 | firstNonBlank(env, ['http_proxy', 'HTTP_PROXY']), |
| 61 | firstNonBlank(env, ['https_proxy', 'HTTPS_PROXY']), |
| 62 | firstNonBlank(env, ['all_proxy', 'ALL_PROXY']), |
| 63 | ].some((value) => httpSchemeValue(value) !== undefined); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Resolve the effective http/https proxy URLs: the scheme-specific |
no test coverage detected