MCPcopy
hub / github.com/axios/axios / getProxyEnvAgent

Function getProxyEnvAgent

lib/adapters/http.js:134–138  ·  view source on GitHub ↗
(options, configHttpAgent, configHttpsAgent)

Source from the content-addressed store, hash-verified

132}
133
134function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
135 return isHttps.test(options.protocol)
136 ? (configHttpsAgent || https.globalAgent)
137 : (configHttpAgent || http.globalAgent);
138}
139
140function getTunnelingAgent(agentOptions, userHttpsAgent) {
141 const key =

Callers 1

setProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected