Understanding Request, Response, and Server Objects

To use the http module in Node.js applications, you first need to understand the request and response objects. They provide the information and much of the functionality that comes into and out of the HTTP clients and servers. Once you see the makeup of these objects—including the properties, events, and methods they provide—it will be simple to implement your own HTTP servers and clients.

The following sections cover the purposes and behaviors of the ClientRequest, ServerResponse, IncomingMessage, and Server objects. You’ll learn about the most important events, properties, and methods that each provides.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.35.54