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

Method onData

github-actions/browserstack/set-browserstack-env.js:2058–2067  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

2056 assert(!this.completed);
2057 if (channels.headers.hasSubscribers) {
2058 channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
2059 }
2060 try {
2061 return this[kHandler].onHeaders(statusCode, headers, resume, statusText);
2062 } catch (err) {
2063 this.abort(err);
2064 }
2065 }
2066 onData(chunk) {
2067 assert(!this.aborted);
2068 assert(!this.completed);
2069 try {
2070 return this[kHandler].onData(chunk);

Callers 3

onBodyMethod · 0.45
writeH2Function · 0.45
onDataMethod · 0.45

Calls 7

__privateGetFunction · 0.70
__privateSetFunction · 0.70
abortMethod · 0.45
pushMethod · 0.45
writeMethod · 0.45
onErrorMethod · 0.45
onCompleteMethod · 0.45

Tested by

no test coverage detected