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

Method onHeaderField

github-actions/browserstack/set-browserstack-env.js:6209–6217  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

6207 if (client[kRunning] === 0) {
6208 util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
6209 return -1;
6210 }
6211 const request = client[kQueue][client[kRunningIdx]];
6212 if (!request) {
6213 return -1;
6214 }
6215 request.onResponseStarted();
6216 }
6217 onHeaderField(buf) {
6218 const len = this.headers.length;
6219 if ((len & 1) === 0) {
6220 this.headers.push(buf);

Callers 1

lazyllhttpFunction · 0.45

Calls 2

pushMethod · 0.45
trackHeaderMethod · 0.45

Tested by

no test coverage detected