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

Function passthroughResponse

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

Source from the content-addressed store, hash-verified

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

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