MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / onHeaderField

Method onHeaderField

out/cli.cjs:54275–54283  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

54273 if (socket.destroyed) {
54274 return -1;
54275 }
54276 const request3 = client[kQueue][client[kRunningIdx]];
54277 if (!request3) {
54278 return -1;
54279 }
54280 }
54281 onHeaderField(buf) {
54282 const len = this.headers.length;
54283 if ((len & 1) === 0) {
54284 this.headers.push(buf);
54285 } else {
54286 this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);

Callers 1

lazyllhttpFunction · 0.80

Calls 3

concatMethod · 0.80
trackHeaderMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected