Responses (4)
Text
But I would suggest instead of using the core HTTP module for sending requests, you use something more sophisticated and user friendly as Axios
Franchesca Wright5 years ago
For a full list of all the properties and methods of the HTTP server class, you can check the official docs.
But if you call Server.close() then the event loop gets cleared, and the application will end
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.
Free AI Career Tools
FREE
AI Job Listings
Curated AI & ML jobs updated weekly with direct links to company application pages.
FREEATS Resume Checker
AI-powered resume scanner. Get a score and actionable recommendations to improve your chances.
FREEStartup Perks
$1.3M+ in free cloud credits, AI API access, and developer tools for startups.