MCPcopy
hub / github.com/nodejs/undici / usesProxyAgent

Function usesProxyAgent

test/env-http-proxy-agent.js:184–194  ·  view source on GitHub ↗
(agent, url)

Source from the content-addressed store, hash-verified

182 dispatcher[agentSymbol].dispatch.called = false
183 })
184 const usesProxyAgent = async (agent, url) => {
185 await fetch(url, { dispatcher })
186 const result = agentSymbols.every((agentSymbol) => agent === agentSymbol
187 ? dispatcher[agentSymbol].dispatch.called === true
188 : dispatcher[agentSymbol].dispatch.called === false)
189
190 agentSymbols.forEach((agentSymbol) => {
191 dispatcher[agentSymbol].dispatch.called = false
192 })
193 return result
194 }
195 const doesNotProxy = usesProxyAgent.bind(this, kNoProxyAgent)
196 return {
197 dispatcher,

Callers 1

Calls 3

fetchFunction · 0.85
everyMethod · 0.80
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…