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

Function getProxyFromEnv

packages/fetch/src/util.ts:8–19  ·  view source on GitHub ↗
(protocol: string)

Source from the content-addressed store, hash-verified

6 * @returns The proxy URL if available, otherwise undefined
7 */
8export function getProxyFromEnv(protocol: string): string | undefined {
9 if (protocol === "https:") {
10 return (
11 process.env.HTTPS_PROXY ||
12 process.env.https_proxy ||
13 process.env.HTTP_PROXY ||
14 process.env.http_proxy
15 );
16 } else {
17 return process.env.HTTP_PROXY || process.env.http_proxy;
18 }
19}
20
21// Note that request options proxy (per model) takes precedence over environment variables
22export function getProxy(

Callers 2

getProxyFunction · 0.85
util.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected