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

Function acceptsHtml

packages/effect/src/unstable/http/HttpStaticServer.ts:417–418  ·  view source on GitHub ↗
(accept: string | undefined)

Source from the content-addressed store, hash-verified

415 )
416
417const acceptsHtml = (accept: string | undefined): boolean =>
418 accept !== undefined && accept.toLowerCase().includes("text/html")
419
420const stripWeakEtagPrefix = (value: string): string => {
421 const trimmed = value.trim()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected