MCPcopy Create free account
hub / github.com/Effect-TS/effect / removeHost

Function removeHost

packages/platform/deno/src/DenoHttpServer.ts:531–535  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

529})
530
531const removeHost = (url: string) => {
532 if (url[0] === "/") return url
533 const index = url.indexOf("/", url.indexOf("//") + 2)
534 return index === -1 ? "/" : url.slice(index)
535}

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected