title: How to prevent XMLHttpRequest from buffering the entire response
body: <p>I'm trying to use an ajax call to a streaming endpoint on my server. The connection should be able to accept pushed data from the server forever, but the XMLHttpRequest appears to buffer the entirety of the response. I just want the browser client to receive each chunk of data once and move on to the next.</p>
  
  <p>Is there any way to prevent this behavior?</p>
  
  <p>UPDATE: Seems like Firefox has the ability to support this by setting XMLHttpRequest.responseType equal to "moz-chunked-text" or "moz-chunked-arraybuffer". No support in other browsers though. Likely not the best approach anyway.</p>
  
  <p><a href="https://stackoverflow.com/questions/15185499/webkit-equivalent-to-firefoxs-moz-chunked-arraybuffer-xhr-responsetype">WebKit equivalent to Firefox&#39;s &quot;moz-chunked-arraybuffer&quot; xhr responseType</a></p>