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

Function requestJson

packages/opencode/test/server/httpapi-session.test.ts:226–228  ·  view source on GitHub ↗
(path: string, init?: RequestInit)

Source from the content-addressed store, hash-verified

224}
225
226function requestJson<T>(path: string, init?: RequestInit) {
227 return request(path, init).pipe(Effect.flatMap(json<T>))
228}
229
230afterEach(async () => {
231 Flag.OPENCODE_EXPERIMENTAL_WORKSPACES = originalWorkspaces

Callers 1

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected