title: How to get length of a response object given here
body: <p>I have a proxy server, which takes request and gives a following response object pasted here <a href="http://pastebin.com/BNwCrFi1" rel="nofollow">http://pastebin.com/BNwCrFi1</a>.</p>
  
  <p>I'm trying to get length of response object that comes back to the proxy response.</p>
  
  <p>Apparently http.response headers like 'transfer-encoding' or 'content-length' are not working.</p>
  
  <p>Any ideas appreciated
  I have placed the following code <br /><br />
  <code>console.log("%s:%s".yellow + " - %s - " + "stream ID: " + "%s".yellow + " - priority: " + "%s".yellow,
        socket.connection ? socket.connection.socket.remoteAddress : socket.socket.remoteAddress,
        socket.connection ? socket.connection.socket.remotePort : socket.socket.remotePort,
        req.method, res.id || (socket._spdyState &amp;&amp; socket._spdyState.id) || "none",
        res.priority || (socket._spdyState &amp;&amp; socket._spdyState.priority) || "none"
      );</code> to function dispatcher so I can get response object make logs similar to apache log format in the following file <a href="https://github.com/igrigorik/node-spdyproxy/blob/master/lib/server.js" rel="nofollow">https://github.com/igrigorik/node-spdyproxy/blob/master/lib/server.js</a></p>
  
  <p>Thank You <br />
  Sai</p>