MCPcopy Create free account
hub / github.com/cloudflare/computer / fetch

Method fetch

packages/computer/tests/proxy-worker.ts:39–45  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

37
38export default class TestDriver extends WorkerEntrypoint<Env> {
39 override async fetch(request: Request): Promise<Response> {
40 const binding = request.headers.get("x-test-binding") ?? "COMPUTERD";
41 const id = request.headers.get("x-test-id") ?? "";
42 // biome-ignore lint/suspicious/noExplicitAny: ctx.exports isn't in @cloudflare/workers-types yet
43 const proxy = (this.ctx as any).exports.WorkspaceProxy({ props: { binding, id } });
44 return proxy.fetch(request);
45 }
46}

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
fetchMethod · 0.65

Tested by

no test coverage detected