[whatwg/fetch] Is is possible to read the response before the whole request body is sent? (#315)

There's a scenario in which a big file is being sent to the server from the client, and after reaching a request body size limit the server responds with a 413 error. In this case I'd like to cancel the request on the client.

It wasn't possible to handle such scenario with `XMLHttpRequest`. Is the fetch API able to do it?

I guess the more accurate question is: is promise returned by `fetch(...)` fulfilled with a response before the request body stream is _done_?

Sorry if the question has an obvious answer, I couldn't make it out from reading the spec.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/315

Received on Saturday, 4 June 2016 12:23:06 UTC