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

@jeffbski if I understand correctly you can consider a `fetch` like an XHR split in 3 `readyState` cases: `0` creation, `2` headers received or request failed already, `4` end of the request.

When you first interact with the fetch you are like at state 2, at that point you can either start processing the body as json, text, or whatever, or you can cancel it through the body that hasn't started streaming/downloading its content yet.

I'm not sure if you manually export it and you `.cancel()` in the meanwhile it works, but I'd expect it to do so.

-- 
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/27#issuecomment-240797511

Received on Thursday, 18 August 2016 17:34:57 UTC