MCPcopy Create free account
hub / github.com/langgenius/dify / hasProxyEnv

Function hasProxyEnv

cli/src/http/proxy.ts:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3const PROXY_ENV_KEYS = ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'https_proxy'] as const
4
5export function hasProxyEnv(): boolean {
6 return PROXY_ENV_KEYS.some(k => (process.env[k] ?? '') !== '')
7}
8
9let resolved = false
10let agent: EnvHttpProxyAgent | undefined

Callers 2

proxyDispatcherFunction · 0.85
proxy.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected