MCPcopy Create free account
hub / github.com/angular/dev-infra / setRecords

Method setRecords

github-actions/bazel/configure-remote/configure-remote.js:11992–12008  ·  view source on GitHub ↗
(origin, addresses)

Source from the content-addressed store, hash-verified

11990 __privateGet(this, _handler).onConnect(__privateMethod(this, _customAbort, customAbort_fn).bind(this));
11991 }
11992 // TODO: will require adjustment after new hooks are out
11993 onHeaders(statusCode, rawHeaders, resume, statusMessage) {
11994 const headers = util.parseHeaders(rawHeaders);
11995 const contentLength = headers["content-length"];
11996 if (contentLength != null && contentLength > __privateGet(this, _maxSize)) {
11997 throw new RequestAbortedError(
11998 `Response size (${contentLength}) larger than maxSize (${__privateGet(this, _maxSize)})`
11999 );
12000 }
12001 if (__privateGet(this, _aborted)) {
12002 return true;
12003 }
12004 return __privateGet(this, _handler).onHeaders(
12005 statusCode,
12006 rawHeaders,
12007 resume,
12008 statusMessage
12009 );
12010 }
12011 onError(err) {

Callers 1

runLookupMethod · 0.45

Calls 3

__privateGetFunction · 0.70
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected