(parser)
| 284 | } |
| 285 | |
| 286 | function 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 | |
| 301 | function prepareError(err, parser, rawPacket) { |
| 302 | err.rawPacket = rawPacket || parser.getCurrentBuffer(); |
no outgoing calls
no test coverage detected
searching dependent graphs…