title: Get request body from node.js's http.IncomingMessage
body: <p>I'm trying to implement a simple HTTP endpoint for an application written in node.js. I've created the HTTP server, but now I'm stuck on reading the request content body:</p>
  
  <pre><code>http.createServer(function(r, s) {
      console.log(r.method, r.url, r.headers);
      console.log(r.read());
      s.write("OK"); 
      s.end(); 
  }).listen(42646);
  </code></pre>
  
  <p>Request's method, URL and headers are printed correctly, but <code>r.read()</code> is always NULL. I can say it's not a problem in how the request is made, because <code>content-length</code> header is greater than zero on server side.</p>
  
  <p><a href="https://nodejs.org/api/http.html#http_http_incomingmessage" rel="noreferrer">Documentation says</a> <code>r</code> is a <code>http.IncomingMessage</code> object that implements the Readable Stream interface, so why it's not working?</p>