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

Function handleRequest

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

Source from the content-addressed store, hash-verified

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

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…