(maxResponseSize: number)
| 503 | } |
| 504 | |
| 505 | function throwBodyTooLargeError(maxResponseSize: number): never { |
| 506 | throw new RuntimeError( |
| 507 | RuntimeErrorCode.FETCH_RESPONSE_BODY_TOO_LARGE, |
| 508 | ngDevMode && |
| 509 | `Fetch response body exceeded the configured buffer limit (${maxResponseSize} bytes).`, |
| 510 | ); |
| 511 | } |
| 512 | |
| 513 | const CHARSET_REGEX = /charset=\s*["']?([^;"'\s]+)["']?/i; |
| 514 |