( response: Response, label: string )
| 44 | } |
| 45 | |
| 46 | async function readVideoJson<T = Record<string, unknown>>( |
| 47 | response: Response, |
| 48 | label: string |
| 49 | ): Promise<T> { |
| 50 | return readResponseJsonWithLimit<T>(response, { |
| 51 | maxBytes: MAX_VIDEO_JSON_BYTES, |
| 52 | label, |
| 53 | }) |
| 54 | } |
| 55 | |
| 56 | async function readVideoErrorText(response: Response, label: string): Promise<string> { |
| 57 | return readResponseTextWithLimit(response, { |
nothing calls this directly
no test coverage detected