title: Node.js HTTP response streams
body: <p>Using the native <code>http.get()</code> in Node.js, I'm trying to pipe a HTTP response to a stream that I can bind <code>data</code> and <code>end</code> events to.</p>
  
  <p>I'm currently handling this for gzip data, using:</p>
  
  <pre><code>http.get(url, function(res) {
    if (res.headers['content-encoding'] == 'gzip') {
      res.pipe(gunzip);
      gunzip.on('data', dataCallback);
      gunzip.on('end', endCallback);
    }
  });
  </code></pre>
  
  <p>Gunzip is a stream and this just works. I've tried to create streams (write streams, then read streams) and pipe the response, but haven't been having much luck. Any suggestions to replicate this same deal, for non-gzipped content?</p>