Posts Tagged 'fetch'

2020-07-23 10:20 UTC

Why Make `fetch`'s Response Body a Stream?

Posted 2020-07-23 10:20 UTC in javascript web fetch

Émile Bergeron asked on Twitter why fetch's Response body is a stream: Can someone explain to me what's the advantage of a readable stream for the response body? In my mind, parsing the body as JSON should be idempotent, but there's probably a good…