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

Function buildDaemonHttpBaseUrl

src/daemon/http-contract.ts:3–5  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

1export const DAEMON_HTTP_BASE_PATH = '/agent-device';
2
3export function buildDaemonHttpBaseUrl(baseUrl: string): string {
4 return buildDaemonHttpUrl(baseUrl, DAEMON_HTTP_BASE_PATH);
5}
6
7export function buildDaemonHttpUrl(baseUrl: string, route: string): string {
8 const normalizedBase = baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`;

Callers 2

startProxyFunction · 0.90

Calls 1

buildDaemonHttpUrlFunction · 0.85

Tested by

no test coverage detected