MCPcopy Create free account
hub / github.com/JacobLinCool/LeetCode-Stats-Card / Header

Class Header

packages/cloudflare-worker/src/headers.ts:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22export default class Header extends Headers {
23 constructor(headers?: Headers) {
24 super(headers);
25 }
26
27 add(...types: (keyof typeof source)[]): Headers {
28 for (const type of types) {
29 for (const [key, value] of Object.entries(source[type])) {
30 this.set(key, value);
31 }
32 }
33
34 return this;
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected