MCPcopy Index your code
hub / github.com/StarpTech/FastGraph / Headers

Function Headers

src/test-utils.ts:83–97  ·  view source on GitHub ↗
(init: readonly [string, string][] | null)

Source from the content-addressed store, hash-verified

81}
82
83export const Headers = (init: readonly [string, string][] | null) => {
84 let raw = new Map(init)
85 let set = raw.set.bind(raw)
86 // @ts-ignore - mutating
87 raw.set = (k, v) => set(k, String(v))
88 // @ts-ignore - mutating
89 raw.append = (k, v) => {
90 let val = raw.get(k) || ''
91 if (val) val += ', '
92 val += String(v)
93 set(k, val)
94 }
95 // @ts-ignore - ctor
96 return raw as Headers
97}
98
99export const WorktopResponse = () => {
100 let headers = Headers(null)

Callers 2

WorktopResponseFunction · 0.70
WorktopRequestFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected