MCPcopy Create free account
hub / github.com/angular/angular / throwBodyTooLargeError

Function throwBodyTooLargeError

packages/common/http/src/fetch.ts:505–511  ·  view source on GitHub ↗
(maxResponseSize: number)

Source from the content-addressed store, hash-verified

503}
504
505function 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
513const CHARSET_REGEX = /charset=\s*["']?([^;"'\s]+)["']?/i;
514

Callers 1

doRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected