title: Node.js : How to do something on all HTTP requests in Express?
body: <p>So I would like to do something like:</p>
  
  <pre><code>app.On_All_Incoming_Request(function(req, res){
      console.log('request received from a client.');
  });
  </code></pre>
  
  <p>the current <code>app.all()</code> requires a path, and if I give for example this <code>/</code> then it only works when I'm on the homepage, so it's not really all..</p>
  
  <p>In plain node.js it is as simple as writing anything after we create the http server, and before we do the page routing.</p>
  
  <p>So how to do this with express, and what is the best way to do it? </p>