5 HTTP
No one serves another of his own free will, but if he knows that he is serving himself, he does it gladly.—Johann Wolfgang von Goethe
One of the most well-known and also most important modules of Node.js is the http module. This module enables you to create a web server with Node.js. What is important for you to know at this point is that this is a full-fledged web server that you can run independently from other server applications such as Nginx or Apache. With a Node.js web server, you can respond to incoming HTTP requests and send an appropriate response back to your users’ browsers. However, the http module can do much more than just send HTML structures to a user’s browser. The http module and its secure variant, the https module, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access