title: In Express and Node.js, is it possible to extend or override methods of the response object?
body: <p>With every middleware, Express passes a <code>res</code> and a <code>req</code> objects. These objects extend the native ones that come from <code>http.ServerResponse</code> and <code>http.ClientRequest</code> respectively. I'd like to know if it's possible to override or extend methods of the response object.</p>
  
  <p>For example, instead of <code>res.render('home', jsonData);</code>, I'd like to extend <code>res</code> with a custom method called customRender and use it like so: <code>res.customRender()</code>.</p>
  
  <p>I'm not stuck at a particular problem or anything. I'd just like to learn how to extend native objects or, as with this case, object that come from 3rd party modules in Node.js</p>