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

Function processHeader

benchmark/http/bench-parser.js:20–29  ·  view source on GitHub ↗
(header, n)

Source from the content-addressed store, hash-verified

18 const kOnMessageComplete = HTTPParser.kOnMessageComplete | 0;
19
20 function processHeader(header, n) {
21 const parser = newParser(REQUEST);
22
23 bench.start();
24 for (let i = 0; i < n; i++) {
25 parser.execute(header, 0, header.length);
26 parser.initialize(REQUEST, {});
27 }
28 bench.end(n);
29 }
30
31 function newParser(type) {
32 const parser = new HTTPParser();

Callers 1

mainFunction · 0.70

Calls 5

newParserFunction · 0.70
startMethod · 0.45
executeMethod · 0.45
initializeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…