title: How can I output data before I end the response?
body: <p>Here is my snippet I tested it in Chrome 11, and Firefox 4:</p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function(request, response){
     // Write Headers
     response.writeHead(200);
  
     // Write Hello World!
     response.write("Hello World!");
  
     // End Response after 5 seconds
     setTimeout(function(){ 
          response.end(); 
     }, 5000);
  
  }).listen(8000);
  </code></pre>
  
  <p>As you can see I timed out the <code>response.end()</code> so I can test if <code>response.write</code> is outputted before the <code>response.end</code>. In my experience though it is not.</p>
  
  <p>Is there a way to output the data before ending the response, something like sending the data in packets?</p>