Re: [fetch] Aborting a fetch (#27)

@jakearchibald,

> That would mean fetch(url).then(r => r.json()) isn't abortable once the stream starts being read into json.

That's OK.  At that point, cancelling the stream should suffice.  That can be mapped back into a cancellation of the response.

I guess that you could say that it's a little janky that there are apparently two ways to cancel a request then, but I think that it maps nicely into the API.  I see each as independently useful, even if both map into RST_STREAM or a connection close in the end.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/27#issuecomment-87126120

Received on Friday, 27 March 2015 23:54:43 UTC