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

Function upstreamFor

apps/cloud/src/edge/docs.test.ts:30–31  ·  view source on GitHub ↗
(url: string, headers?: HeadersInit)

Source from the content-addressed store, hash-verified

28
29describe("buildDocsUpstream", () => {
30 const upstreamFor = (url: string, headers?: HeadersInit) =>
31 buildDocsUpstream(new Request(url, { headers }));
32
33 it("swaps the origin to Mintlify over https while preserving path + query", () => {
34 const upstream = new URL(upstreamFor("https://executor.sh/docs/guides/auth?theme=dark").url);

Callers 1

docs.test.tsFile · 0.85

Calls 1

buildDocsUpstreamFunction · 0.90

Tested by

no test coverage detected