ServerResponse

The Node.js object a server uses to answer one HTTP request: a Writable stream with methods for setting the status and headers.

In more detail

Headers go out with the first write or writeHead(), after which they cannot change. end() finishes the response.

Related terms

Taught in

References