Hi there,
Someone with the username “substack” just added a warning note to my Fetch documentation:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Warning
it reads
“This work is already at odds with the progress being made on the streams working group and is likely to be deprecated or completely changed in the future since the fetch API does not expose chunks as they arrive and instead buffers up the whole response in a promise. The fetch API also cannot cancel events, which the XHR interface provides."
Can anyone comment on this?
It sounds to me like the two specs have slightly different use cases, e.g. not everything requires chunking/streaming, but I am sure someone on here can give me a far more knowledgeable response.
I just feel that, if this warning does contain legitimate concerns, we should probably add a section to answer them and explain why both specs are needed.
best regards,
Chris Mills
Senior tech writer || Mozilla
developer.mozilla.org || MDN
cmi...@mozilla.com || @chrisdavidmills