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

Function request

packages/opencode/test/server/httpapi-ui.test.ts:76–85  ·  view source on GitHub ↗
(input: string | URL | Request, init?: RequestInit)

Source from the content-addressed store, hash-verified

74 ).handler
75 return {
76 request(input: string | URL | Request, init?: RequestInit) {
77 return Effect.promise(() =>
78 Promise.resolve(
79 handler(
80 input instanceof Request ? input : new Request(new URL(input, "http://localhost"), init),
81 HttpApiApp.context,
82 ),
83 ),
84 )
85 },
86 }
87}
88

Callers

nothing calls this directly

Calls 1

handlerFunction · 0.70

Tested by

no test coverage detected