(url: string)
| 147 | |
| 148 | const hasBody = req.method !== "GET" && req.method !== "HEAD"; |
| 149 | const webRequest = (url: string): Request => |
| 150 | new Request(new URL(url, origin), { |
| 151 | method: req.method, |
| 152 | headers, |
| 153 | body: hasBody ? Readable.toWeb(req) : undefined, |
| 154 | duplex: hasBody ? "half" : undefined, |
| 155 | } as RequestInit); |
| 156 | |
| 157 | let response: Response; |
| 158 | if (isUnauthenticatedOAuthClientMetadataPath(pathOnly) && req.method === "GET") { |