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

Function normalize

packages/effect/src/unstable/httpapi/internal/mediaType.ts:2–6  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

1/** @internal */
2export function normalize(contentType: string): string {
3 const normalized = contentType.toLowerCase().trim()
4 const index = normalized.indexOf(";")
5 return index === -1 ? normalized : normalized.slice(0, index).trim()
6}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected