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

Function clearIncoming

lib/_http_server.js:1173–1184  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

1171}
1172
1173function clearIncoming(req) {
1174 req ||= this;
1175 const parser = req.socket?.parser;
1176 // Reset the .incoming property so that the request object can be gc'ed.
1177 if (parser && parser.incoming === req) {
1178 if (req.readableEnded) {
1179 parser.incoming = null;
1180 } else {
1181 req.on('end', clearIncoming);
1182 }
1183 }
1184}
1185
1186function resOnFinish(req, res, socket, state, server) {
1187 if (onResponseFinishChannel.hasSubscribers) {

Callers 1

resOnFinishFunction · 0.85

Calls 1

onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…