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

Method fetch

examples/tutorial/src/index.ts:81–85  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

79 }
80
81 override async fetch(request: Request): Promise<Response> {
82 return new URL(request.url).pathname === "/ws"
83 ? this.#backend.handleFetch(request)
84 : super.fetch(request);
85 }
86
87 /** Run the agent. */
88 async card(prompt: string): Promise<{ url: string; summary: string }> {

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.65
handleFetchMethod · 0.45

Tested by

no test coverage detected