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() should fulfill on success headers, not complete body #47

Open
jakearchibald opened this issue Jan 13, 2014 · 0 comments
Open

fetch() should fulfill on success headers, not complete body #47

jakearchibald opened this issue Jan 13, 2014 · 0 comments

Comments

@jakearchibald
Copy link
Collaborator

See w3c/ServiceWorker#112, but the method to get the full body is pretty undefined, but I'll leave this ticket open as a reminder for when it gets resolved in the spec.

The reason for this is streaming. respondTo(fetch(url)) should be able to stream the response to the browser rather than waiting for the whole response before it can fulfill.

This means we need another, nice-and-easy way to get the response. Hopefully the streams API provides this.

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