MCPcopy Index your code
hub / github.com/anomalyco/opencode / fetch

Function fetch

packages/opencode/test/server/httpapi-workspace.test.ts:141–148  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

139 return Bun.serve({
140 port: 0,
141 async fetch(request) {
142 return handler({
143 url: request.url,
144 method: request.method,
145 headers: Object.fromEntries(request.headers.entries()),
146 body: await request.text(),
147 })
148 },
149 })
150}
151

Callers 4

requestTicketFunction · 0.70
createCatFunction · 0.70

Calls 2

handlerFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected