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

Refactor text() et al to share more infrastructure with Fetch #133

Open
annevk opened this issue Jun 7, 2019 · 0 comments
Open

Refactor text() et al to share more infrastructure with Fetch #133

annevk opened this issue Jun 7, 2019 · 0 comments

Comments

@annevk
Copy link
Member

annevk commented Jun 7, 2019

Andrea implemented these methods in Firefox and ended up using a shared abstraction with our code for Fetch.

If I look at https://fetch.spec.whatwg.org/#concept-body-consume-body and https://w3c.github.io/FileAPI/#text-method-algo side-by-side it seems quite doable to have less duplication here.

(We might want to point out the one major difference though, which is that File API will create an endless series of streams for the same underlying data where in Fetch that'd require explicit cloning.)

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