MCPcopy
hub / github.com/7836246/cursor2api / getProxyDispatcher

Function getProxyDispatcher

test/unit-proxy-agent.mjs:64–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64function getProxyDispatcher() {
65 const config = getConfig();
66 const proxyUrl = config.proxy;
67
68 if (!proxyUrl) return undefined;
69
70 if (!cachedAgent) {
71 cachedAgent = new MockProxyAgent(proxyUrl);
72 }
73
74 return cachedAgent;
75}
76
77function getProxyFetchOptions() {
78 const dispatcher = getProxyDispatcher();

Callers 2

getProxyFetchOptionsFunction · 0.70

Calls 1

getConfigFunction · 0.70

Tested by

no test coverage detected