(input: RequestInfo | URL | string)
| 115 | } |
| 116 | |
| 117 | const normalizeUrlFromInput = (input: RequestInfo | URL | string): URL => { |
| 118 | if (typeof input === "string") { |
| 119 | return new URL(input); |
| 120 | } |
| 121 | |
| 122 | if (input instanceof URL) { |
| 123 | return input; |
| 124 | } |
| 125 | |
| 126 | return new URL(input.url); |
| 127 | }; |
| 128 | |
| 129 | const normalizeHttpMethod = (input: RequestInfo | URL | string, init?: RequestInit): string => { |
| 130 | if (typeof input === "string" || input instanceof URL) { |
no outgoing calls
no test coverage detected
searching dependent graphs…