[whatwg] Fetch API: HTTP Stream

2014-06-23 Thread Alexandre Morgaut
Hi, I occasionally have had to deal live XML feeds over HTTP The server continuously sent HTTP chunks during the lifetime of the HTTP connection, meaning, until the client close the connection. I used a SAX JS lib and, on readystate === 3, had to continuously check body changes via a

Re: [whatwg] Fetch API: HTTP Stream

2014-06-23 Thread Anne van Kesteren
On Mon, Jun 23, 2014 at 1:36 PM, Alexandre Morgaut alexandre.morg...@4d.com wrote: I wonder now if such fetch API could be a better place to manage such use case The plan is for response.body (the promise fetch() returns resolves once all the headers are in) to be a stream:

Re: [whatwg] Fetch API: HTTP Stream

2014-06-23 Thread Alexandre Morgaut
Thanks for the redirection Anne On 23 juin 2014, at 13:42, Anne van Kesteren ann...@annevk.nl wrote: On Mon, Jun 23, 2014 at 1:36 PM, Alexandre Morgaut alexandre.morg...@4d.com wrote: I wonder now if such fetch API could be a better place to manage such use case The plan is for