Express.js Request and Response

In express.js, request and response are the parameters for callback functions.

app.get('/', function (req, res) {  
   // --  
  • Request object – it is a HTTP request and contains the properties for boby, query string etc.
  • Response Object – it is a HTTP response sent by express application for an HTTP request.

We will see the usages of request and response in later section.

Subscribe Now