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 return (_b = (_a = this[kHandler]).onResponseStarted) == null ? void 0 : _b.call(_a);
2045 }
2046 onHeaders(statusCode, headers, resume, statusText) {
2047 assert(!this.aborted);
2048 assert(!this.completed);
2049 if (channels.headers.hasSubscribers) {
2050 channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
2051 }
2052 try {
2053 return this[kHandler].onHeaders(statusCode, headers, resume, statusText);
2054 } catch (err) {
2055 this.abort(err);
2056 }
2057 }
2058 onData(chunk) {
2059 assert(!this.aborted);
2060 assert(!this.completed);

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