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

Method onHeaders

github-actions/browserstack/set-browserstack-env.js:2046–2057  ·  view source on GitHub ↗
(statusCode, headers, resume, statusText)

Source from the content-addressed store, hash-verified

2044 abort(this.error);
2045 } else {
2046 this.abort = abort;
2047 return this[kHandler].onConnect(abort);
2048 }
2049 }
2050 onResponseStarted() {
2051 var _a, _b;
2052 return (_b = (_a = this[kHandler]).onResponseStarted) == null ? void 0 : _b.call(_a);
2053 }
2054 onHeaders(statusCode, headers, resume, statusText) {
2055 assert(!this.aborted);
2056 assert(!this.completed);
2057 if (channels.headers.hasSubscribers) {
2058 channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
2059 }
2060 try {

Callers 3

onHeadersCompleteMethod · 0.45
writeH2Function · 0.45
onHeadersMethod · 0.45

Calls 8

parseLocationFunction · 0.70
cleanRequestHeadersFunction · 0.70
abortFunction · 0.70
__privateGetFunction · 0.70
abortMethod · 0.45
pushMethod · 0.45
onMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected