(response: Response)
| 423 | }; |
| 424 | |
| 425 | const 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. */ |
no test coverage detected