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

Function proxyDispatcher

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

Source from the content-addressed store, hash-verified

15// fetch keeps Node's default global dispatcher untouched. Resolved once per
16// process — proxy env vars are fixed for a single CLI invocation.
17export function proxyDispatcher(): EnvHttpProxyAgent | undefined {
18 if (!resolved) {
19 agent = hasProxyEnv() ? new EnvHttpProxyAgent() : undefined
20 resolved = true
21 }
22 return agent
23}

Callers 2

compileStateFunction · 0.85
proxy.test.tsFile · 0.85

Calls 1

hasProxyEnvFunction · 0.85

Tested by

no test coverage detected