MCPcopy
hub / github.com/tinyhttp/tinyhttp / setCharset

Function setCharset

packages/send/src/utils.ts:13–17  ·  view source on GitHub ↗
(type: string, charset: string)

Source from the content-addressed store, hash-verified

11}
12
13export function setCharset(type: string, charset: string) {
14 const parsed = parse(type)
15 parsed.parameters.charset = charset
16 return format(parsed)
17}

Callers 1

sendFunction · 0.90

Calls 2

formatFunction · 0.85
parseFunction · 0.50

Tested by

no test coverage detected