MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / readResponseBody

Function readResponseBody

test/test-e2e.ts:302–309  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

300}
301
302async function readResponseBody(res: Response): Promise<ResponsePayload> {
303 const text = await res.text();
304 try {
305 return { text, json: JSON.parse(text) as unknown };
306 } catch {
307 return { text };
308 }
309}
310
311function extractErrorMessage(payload: ResponsePayload): string {
312 if (payload.json && typeof payload.json === "object") {

Callers 3

expectChatContentFunction · 0.85
runLocalSuiteFunction · 0.85
runLiveSuiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected