MCPcopy Index your code
hub / github.com/callstack/agent-device / formatHostForUrl

Function formatHostForUrl

src/cli/commands/proxy.ts:92–94  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

90}
91
92function formatHostForUrl(host: string): string {
93 return host.includes(':') && !host.startsWith('[') ? `[${host}]` : host;
94}
95
96export function renderProxyStartup(
97 startup: ProxyStartup,

Callers 1

startProxyFunction · 0.85

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…