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

Function webRequest

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

Source from the content-addressed store, hash-verified

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

Callers 1

configureServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected