MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resolveProxyUrl

Function resolveProxyUrl

cli/src/utils/codebuff-api.ts:211–221  ·  view source on GitHub ↗
(
  env: Record<string, string | undefined> = getSystemProcessEnv(),
)

Source from the content-addressed store, hash-verified

209 * Returns undefined when no proxy is configured.
210 */
211export function resolveProxyUrl(
212 env: Record<string, string | undefined> = getSystemProcessEnv(),
213): string | undefined {
214 return (
215 env['HTTPS_PROXY'] ||
216 env['https_proxy'] ||
217 env['HTTP_PROXY'] ||
218 env['http_proxy'] ||
219 undefined
220 )
221}
222
223/**
224 * Sleep for a given duration

Callers 1

createCodebuffApiClientFunction · 0.85

Calls 1

getSystemProcessEnvFunction · 0.90

Tested by

no test coverage detected