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

Function responseJson

packages/opencode/test/server/httpapi-session.test.ts:222–224  ·  view source on GitHub ↗
(response: HttpClientResponse.HttpClientResponse)

Source from the content-addressed store, hash-verified

220}
221
222function responseJson(response: HttpClientResponse.HttpClientResponse) {
223 return response.json
224}
225
226function requestJson<T>(path: string, init?: RequestInit) {
227 return request(path, init).pipe(Effect.flatMap(json<T>))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected