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

Handle timeouts in BrowserClient #136

Closed
wants to merge 47 commits into from

Conversation

donny-dont
Copy link

@donny-dont donny-dont commented Oct 31, 2017

Adds support for HttpRequest.timeout as well as catching the timeout event.

Closes #21 at least for BrowserClient.

benasocj and others added 30 commits September 27, 2016 11:48
Also remove stale [docs] link.

Closes dart-lang#3
@nex3
Copy link
Member

nex3 commented Oct 31, 2017

What's the benefit to exposing this as a client-specific context variable rather than providing client-agnostic middleware?

@donny-dont
Copy link
Author

The functionality is already built-in with the web platform in this case. A client middleware could use configuration specific imports to choose either the BrowserClient path or an implementation for IOClient.

@nex3
Copy link
Member

nex3 commented Oct 31, 2017

What's the benefit of using the built-in behavior, though?

A client middleware could use configuration specific imports to choose either the BrowserClient path or an implementation for IOClient.

I don't understand. How would it know what the implementation of the root-level client is?

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

Successfully merging this pull request may close these issues.

7 participants