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

Function removeHost

packages/platform/bun/src/BunHttpServer.ts:619–625  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

617})
618
619const removeHost = (url: string) => {
620 if (url[0] === "/") {
621 return url
622 }
623 const index = url.indexOf("/", url.indexOf("//") + 2)
624 return index === -1 ? "/" : url.slice(index)
625}

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected