MCPcopy Create free account
hub / github.com/CodeDredd/h3-compression / eventFor

Function eventFor

test/compression.test.ts:19–21  ·  view source on GitHub ↗
(encoding: string)

Source from the content-addressed store, hash-verified

17const html = '<h1>Hello World</h1>'
18
19function eventFor(encoding: string) {
20 return mockEvent('/', { headers: { 'accept-encoding': encoding } })
21}
22
23const decoders: Record<string, (input: Buffer) => Buffer> = {
24 gzip: zlib.gunzipSync,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected