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

Function handler

test/parallel/test-http-1.0.js:60–66  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

58
59{
60 function handler(req, res) {
61 assert.strictEqual(req.httpVersion, '1.0');
62 assert.strictEqual(req.httpVersionMajor, 1);
63 assert.strictEqual(req.httpVersionMinor, 0);
64 res.writeHead(200, { 'Content-Type': 'text/plain' });
65 res.end(body);
66 }
67
68 function request_generator() {
69 return 'GET / HTTP/1.0\r\n\r\n';

Callers 7

_handleChunkMethod · 0.50
resetMethod · 0.50
settleJobPromiseFunction · 0.50
onSignalAbortFunction · 0.50
testRequestFunction · 0.50

Calls 4

writeHeadMethod · 0.80
_sendMethod · 0.80
endMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…