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

Function handleRequest

test/system-ca/test-use-system-ca-worker-enable.mjs:20–30  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

writeHeadMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected