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

Function passthroughResponse

apps/cloud/src/edge/passthrough.ts:128–135  ·  view source on GitHub ↗
(
  request: Request,
  pathname: string,
)

Source from the content-addressed store, hash-verified

126 * through to normal dispatch.
127 */
128export const passthroughResponse = (
129 request: Request,
130 pathname: string,
131): Promise<Response> | null => {
132 if (isDocsPath(pathname)) return docsProxyResponse(request, pathname);
133 if (isPosthogPath(pathname)) return fetch(buildPosthogUpstream(request, pathname));
134 return null;
135};

Callers 2

server.tsFile · 0.90

Calls 5

isDocsPathFunction · 0.85
docsProxyResponseFunction · 0.85
isPosthogPathFunction · 0.85
buildPosthogUpstreamFunction · 0.85
fetchFunction · 0.50

Tested by

no test coverage detected