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

Function cleanParser

lib/_http_common.js:286–299  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

284}
285
286function cleanParser(parser) {
287 parser._headers = [];
288 parser._url = '';
289 parser.socket = null;
290 parser.incoming = null;
291 parser.outgoing = null;
292 parser.maxHeaderPairs = MAX_HEADER_PAIRS;
293 parser[kOnMessageBegin] = null;
294 parser[kOnExecute] = null;
295 parser[kOnTimeout] = null;
296 parser._consumed = false;
297 parser.onIncoming = null;
298 parser.joinDuplicateHeaders = null;
299}
300
301function prepareError(err, parser, rawPacket) {
302 err.rawPacket = rawPacket || parser.getCurrentBuffer();

Callers 2

_http_common.jsFile · 0.85
freeParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…