MCPcopy Create free account
hub / github.com/StarpTech/FastGraph / Headers

Class Headers

src/test-utils.ts:208–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
207// @ts-ignore - faking it
208globalThis.Headers = class Headers extends Map {
209 get(key: string) {
210 return super.get(key.toLowerCase())
211 }
212 has(key: string) {
213 return super.has(key.toLowerCase())
214 }
215 set(key: string, value: string) {
216 return super.set(key.toLowerCase(), value)
217 }
218 append(key: string, val: string) {
219 let prev = this.get(key) || ''
220 if (prev) prev += ', '
221 this.set(key, prev + val)
222 }
223}
224
225// @ts-ignore - faking it
226globalThis.fetch = async function Fetch(url: RequestInfo, init?: RequestInit) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected