Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: recipes/dart_io/pkg_http/bin/making_a_get_request.dart

Issue 99333012: The first few short pkg:http examples (Closed) Base URL: https://github.com/dart-lang/cookbook.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import 'package:http/http.dart' as http;
2
3 void main() {
4 var url = 'http://httpbin.org/';
5 http.get(url).then((response) {
6 print("Response status: ${response.statusCode}");
7 print("Response body: ${response.body}");
8 });
9 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698