Re: [whatwg/fetch] Add timeout option (#20)

> So when you fetch the body (using response.json() or response.text() or similar), it can fail.

Can you be more precise about this please.
In general it can throw if it's locked, has already been read or canceled. For example:
- `text` check https://stackoverflow.com/a/49786130/248058
- `json` check https://infra.spec.whatwg.org/#parse-json-from-bytes

Where does it say that it can fail because the body wasn't received?
It's a stream, hence it's handled.

-- 
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/20#issuecomment-541302252

Received on Saturday, 12 October 2019 08:40:37 UTC