(url: string)
| 161 | |
| 162 | const hasBody = req.method !== "GET" && req.method !== "HEAD"; |
| 163 | const webRequest = (url: string): Request => |
| 164 | new Request(new URL(url, origin), { |
| 165 | method: req.method, |
| 166 | headers, |
| 167 | body: hasBody ? Readable.toWeb(req) : undefined, |
| 168 | duplex: hasBody ? "half" : undefined, |
| 169 | } as RequestInit); |
| 170 | |
| 171 | let response: Response; |
| 172 | if (isUnauthenticatedOAuthClientMetadataPath(pathOnly) && req.method === "GET") { |