June 2025
Intermediate to advanced
837 pages
24h 50m
English
The client allows you to formulate requests to servers and have all aspects of the request under your control, from the header to the body. In the following sections, Node.js plays the role of the client and interacts with the address book you created earlier. In this context, there are different options available to you to formulate a request. You can either use the http module of Node.js itself or install an additional module.
The request function of the http module allows you to send requests to any web server. The advantage of this method is that you don’t need to install any additional packages, whereas its disadvantage is a somewhat inconvenient interface. To generate ...
Read now
Unlock full access