Deep dive into the Node HTTP module

An in-depth look at the Node HTTP module, and how to use it to scale up!

Responses (4)

But I would suggest instead of using the core HTTP module for sending requests, you use something more sophisticated and user friendly as Axios
Avatar Image
Franchesca Wright4 years ago
For a full list of all the properties and methods of the HTTP server class, you can check the official docs.
Avatar Image
Franchesca Wright4 years ago
But if you call Server.close() then the event loop gets cleared, and the application will end
Avatar Image
Franchesca Wright4 years ago
loop, this is the reason why our preview code snippet doesn't automatically exit after executing the last line of code, a node application will stay alive until there arent more lines of code to execute or the event loop is still populated.
Avatar Image
Franchesca Wright4 years ago
Clap
0|0|
Clap
0|0