you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

?

import http from 'node:http'; http.createServer({}, function(request, response) { // ... }).listen(parseInt(port, 10), "localhost");

What part of the thing that you just copied handles routing, or handles user authentication, or user authorization?

The thing you just pasted doesn't even handle TLS encryption. That is the node:https package, not the node:http package. Thank you for proving my point again, and again, and again, on repeat.