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

Function handleRequest

test/system-ca/test-native-root-certs.mjs:17–27  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

15// the CA certificate first (which needs an interactive GUI approval, e.g. TouchID):
16// see the README.md in this folder for instructions on how to do this.
17const handleRequest = (req, res) => {
18 const path = req.url;
19 switch (path) {
20 case '/hello-world':
21 res.writeHead(200);
22 res.end('hello world\n');
23 break;
24 default:
25 assert.fail(`Unexpected path: ${path}`);
26 }
27};
28
29describe('use-system-ca', function() {
30

Callers

nothing calls this directly

Calls 3

writeHeadMethod · 0.80
endMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…