How To Use the `res` Object in in Node.js

Ckmobile
3 min readJan 6, 2021

The ServerResponse object is passed as the second parameter to the requestListener function.

The ServerResponse object represents the writable stream back to the client.

Complete Node.js articles:

Part 1: How to create a HTTP server in Node.js

--

--