title: Async reading chunked content with HttpClient from ASP.NET WebApi
body: <p>I would like to use HttpClient to read the chunked (in the sense of HTTP 1.1 chunked transfer encoding) content asynchronously.</p>
  
  <p>I am looking at HttpContent async methods at:
  <a href="http://msdn.microsoft.com/en-us/library/hh193663.aspx" rel="noreferrer">MSDN link</a></p>
  
  <p>However, in the case of returned Task for byte array, for example: </p>
  
  <blockquote>
    <p>The returned Task object will complete after all of the content has been written as a byte array</p>
  </blockquote>
  
  <p>I am getting chunked content precisely because server doesn't know ahead of time when will all of the data be available, thus I don't know when will all of the content arrive. Rather than waiting, possibly for hours, for the task to complete, I would like to be able to read the chunks as they arrive.</p>
  
  <p>Can I somehow read part of the response content, like have some task that would complete when every 4K bytes of content are received in response?</p>
  
  <p>Is using HttpClient advantageous at all in this case?</p>