MCPcopy Index your code
hub / github.com/continuedev/continue / getProxy

Function getProxy

packages/fetch/src/util.ts:22–30  ·  view source on GitHub ↗
(
  protocol: string,
  requestOptions?: RequestOptions,
)

Source from the content-addressed store, hash-verified

20
21// Note that request options proxy (per model) takes precedence over environment variables
22export function getProxy(
23 protocol: string,
24 requestOptions?: RequestOptions,
25): string | undefined {
26 if (requestOptions?.proxy) {
27 return requestOptions.proxy;
28 }
29 return getProxyFromEnv(protocol);
30}
31
32export function getEnvNoProxyPatterns(): string[] {
33 const envValue = process.env.NO_PROXY || process.env.no_proxy;

Callers 1

fetchwithRequestOptionsFunction · 0.85

Calls 1

getProxyFromEnvFunction · 0.85

Tested by

no test coverage detected