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

Function throwBodyTooLargeError

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

Source from the content-addressed store, hash-verified

468}
469
470function 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
478const CHARSET_REGEX = /charset=\s*["']?([^;"'\s]+)["']?/i;
479

Callers 1

doRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected