IncomingMessage

The Node.js object for an HTTP request a server has received, or a response a client has received, which is a Readable stream of the body.

In more detail

It carries the method, url and headers, and you read the body with for await or by piping it. Consuming it as a stream keeps memory low for large uploads.

Related terms

Taught in

References