The value if it is an HTTP/HTTPS-scheme proxy (not SOCKS), else undefined.
(value: string | undefined)
| 48 | |
| 49 | /** The value if it is an HTTP/HTTPS-scheme proxy (not SOCKS), else undefined. */ |
| 50 | function httpSchemeValue(value: string | undefined): string | undefined { |
| 51 | return value !== undefined && !SOCKS_SCHEMES.has(schemeOf(value) ?? '') ? value : undefined; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * True when an HTTP/HTTPS-scheme proxy is configured — via `HTTP_PROXY`, |
no test coverage detected