MCPcopy Create free account
hub / github.com/anomalyco/opencode / request

Function request

packages/opencode/src/server/server.ts:60–62  ·  view source on GitHub ↗
(input, init)

Source from the content-addressed store, hash-verified

58 const app: ServerApp = {
59 fetch: (request: Request) => handler(request, HttpApiApp.context),
60 request(input, init) {
61 return app.fetch(input instanceof Request ? input : new Request(new URL(input, "http://localhost"), init))
62 },
63 }
64 return { app }
65})

Callers 1

share-next.tsFile · 0.50

Calls 1

fetchMethod · 0.80

Tested by

no test coverage detected