We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to run these codes.
This program don't uses IOClient.
import 'package:http/http.dart' as http; main() { http.get("https://www.dartlang.org").then((response) { print(response.body); }); }
<!doctype html> ~ </html> [Finished in 2.3s]
This program uses IOClient.
import 'package:http/http.dart' as http; main() { http.IOClient ioClient = new http.IOClient(); ioClient.get("https://www.dartlang.org").then((response) { print(response.body); }); }
<!doctype html> ~ </html> [Finished in 16.6s]
What to do to solve this problem?
The text was updated successfully, but these errors were encountered:
You need to call close() on the client once you're done using it. Otherwise, it will keep the program alive until its connection times out.
close()
Sorry, something went wrong.
I see. Thanks!
No branches or pull requests
I tried to run these codes.
This program don't uses IOClient.
This program uses IOClient.
What to do to solve this problem?
The text was updated successfully, but these errors were encountered: