MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / webRequest

Function webRequest

apps/local/vite.config.ts:163–169  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

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") {

Callers 1

configureServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected