-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add support for timeouts in HTTP package #10411
Comments
This comment was originally written by @seaneagan this is very similar to issue #10119, which would allow you to do: http.read('http://google.com').withTimeout(const Duration(seconds: 5)); |
This comment was originally written by [email protected] I see. I tried to search "http timeout" and didn't see that one. Starred the other issue, it's a good generic approach indeed. |
Is this still valid? Does the http package handle this now? cc @munificent. |
Punting to @nweiz. cc @nex3. |
This issue has been moved to dart-lang/http#10. |
This issue was originally filed by [email protected]
Some sort of timeout support for HTTP package would be very useful.
Example:
http.read('http://google.com', timeout: const Duration(seconds: 5));
The text was updated successfully, but these errors were encountered: