MCPcopy Create free account
hub / github.com/callstack/agent-device / assertHttpUrl

Function assertHttpUrl

src/commands/management/runtime/admin.ts:240–250  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

238}
239
240function assertHttpUrl(url: string): void {
241 let parsed: URL;
242 try {
243 parsed = new URL(url);
244 } catch {
245 throw new AppError('INVALID_ARGS', `Invalid install source URL: ${url}`);
246 }
247 if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
248 throw new AppError('INVALID_ARGS', 'Install source URL must use http or https');
249 }
250}
251
252function normalizeDeviceTarget(
253 target: BackendDeviceTarget | undefined,

Callers 1

normalizeInstallSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…