Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch API #5

Open
justincy opened this issue Nov 8, 2016 · 0 comments
Open

Fetch API #5

justincy opened this issue Nov 8, 2016 · 0 comments

Comments

@justincy
Copy link
Contributor

justincy commented Nov 8, 2016

The fetch API defines the global fetch() method for getting resources (modern replacement of XMLHttpRequest which the sdk currently uses internally). Due to browser adoption and usage we won't be able to use it internally any time soon without a polyfill which itself depends on a polyfill for promises. Too much bloat.

But the fetch spec also defines Request, Response, and Headers objects. The sdk has it's own internal representation of those concepts. It might be useful to implement them according to the fetch spec. Though this would be a breaking change since responses are exposed to the developer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant