(maxResponseSize: number)
| 468 | } |
| 469 | |
| 470 | function throwBodyTooLargeError(maxResponseSize: number): never { |
| 471 | throw new RuntimeError( |
| 472 | RuntimeErrorCode.FETCH_RESPONSE_BODY_TOO_LARGE, |
| 473 | ngDevMode && |
| 474 | `Fetch response body exceeded the configured buffer limit (${maxResponseSize} bytes).`, |
| 475 | ); |
| 476 | } |
| 477 | |
| 478 | const CHARSET_REGEX = /charset=\s*["']?([^;"'\s]+)["']?/i; |
| 479 |