| 20 | }; |
| 21 | |
| 22 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected