MCPcopy Create free account
hub / github.com/cloudflare/computer / toHttpUrl

Function toHttpUrl

packages/computer/src/backends/test.ts:87–91  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

85}
86
87function toHttpUrl(input: string): string {
88 if (input.startsWith("ws://")) return `http://${input.slice("ws://".length)}`;
89 if (input.startsWith("wss://")) return `https://${input.slice("wss://".length)}`;
90 return input;
91}

Callers 1

probeHealthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected