MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / httpSchemeValue

Function httpSchemeValue

packages/agent-core/src/utils/proxy.ts:50–52  ·  view source on GitHub ↗

The value if it is an HTTP/HTTPS-scheme proxy (not SOCKS), else undefined.

(value: string | undefined)

Source from the content-addressed store, hash-verified

48
49/** The value if it is an HTTP/HTTPS-scheme proxy (not SOCKS), else undefined. */
50function httpSchemeValue(value: string | undefined): string | undefined {
51 return value !== undefined && !SOCKS_SCHEMES.has(schemeOf(value) ?? '') ? value : undefined;
52}
53
54/**
55 * True when an HTTP/HTTPS-scheme proxy is configured — via `HTTP_PROXY`,

Callers 2

hasHttpProxyFunction · 0.85
resolveHttpProxyUrlsFunction · 0.85

Calls 2

schemeOfFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected