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

Function stripQueryString

packages/effect/src/unstable/http/HttpStaticServer.ts:292–295  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

290}
291
292const stripQueryString = (url: string): string => {
293 const queryIndex = url.indexOf("?")
294 return queryIndex === -1 ? url : url.slice(0, queryIndex)
295}
296
297const resolveMimeType = (path: Path.Path, filePath: string, mimeTypes: Record<string, string>): string => {
298 const extension = path.extname(filePath).toLowerCase()

Callers 1

resolveFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected