fetch
fetch copied to clipboard
A fetch API polyfill for React Native with text streaming support.
I'll circle back with a reproduction shortly.
I believe React Native's environment does not provide [`DOMException`](https://developer.mozilla.org/en-US/docs/Web/API/DOMException), so we need to use a polyfill ~~or develop our own~~. Check [domexpection](https://github.com/jsdom/domexception). If that's the case, for consistency's sake, the...
It should be possible to rewrite the code to not rely on both [TextEncoder](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder) and [TextDecoder](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder), just like GitHub as done: - Decode: https://github.com/github/fetch/blob/a8aa427de0ed808ff26c0e3eb2e59c122c44488a/test/test.js#L79 - Encode: https://github.com/github/fetch/blob/a8aa427de0ed808ff26c0e3eb2e59c122c44488a/test/test.js#L69 By removing the...