(url: URL)
| 20 | } |
| 21 | |
| 22 | function isAllowedUrl(url: URL): boolean { |
| 23 | return url.protocol === 'http:' || url.protocol === 'https:' |
| 24 | } |
| 25 | |
| 26 | function getHeader(headers: Headers, name: string): string | undefined { |
| 27 | return headers.get(name) ?? undefined |