MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bodyPreviewFromResponse

Function bodyPreviewFromResponse

packages/core/sdk/src/oauth-helpers.ts:425–426  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

423};
424
425const bodyPreviewFromResponse = async (response: Response): Promise<string | undefined> =>
426 redactedBodyPreview((await safeBodyText(() => response.clone().text())) ?? "");
427
428/** Render an already-parsed body back to text for the preview. A value that
429 * cannot be serialised simply has no preview — never a thrown defect. */

Callers 1

tokenEndpointHttpSummaryFunction · 0.85

Calls 4

redactedBodyPreviewFunction · 0.85
safeBodyTextFunction · 0.85
textMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected