MCPcopy Index your code
hub / github.com/nodejs/node / parserOnBody

Function parserOnBody

lib/_http_common.js:128–141  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

126}
127
128function parserOnBody(b) {
129 const stream = this.incoming;
130
131 // If the stream has already been removed, then drop it.
132 if (stream === null || stream[kSkipPendingData])
133 return;
134
135 // Pretend this was the result of a stream._read call.
136 if (!stream._dumped) {
137 const ret = stream.push(b);
138 if (!ret)
139 readStop(this.socket);
140 }
141}
142
143function parserOnMessageComplete() {
144 const parser = this;

Callers

nothing calls this directly

Calls 2

readStopFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…