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

Function decodeResponseBody

packages/http-recorder/src/internal-effect.ts:64–65  ·  view source on GitHub ↗
(snapshot: ResponseSnapshot)

Source from the content-addressed store, hash-verified

62 )
63
64const decodeResponseBody = (snapshot: ResponseSnapshot) =>
65 snapshot.bodyEncoding === "base64" ? Buffer.from(snapshot.body, "base64") : snapshot.body
66
67const responseFromSnapshot = (request: HttpClientRequest.HttpClientRequest, snapshot: ResponseSnapshot) =>
68 HttpClientResponse.fromWeb(

Callers 1

responseFromSnapshotFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected