| Index: recipes/dart_io/pkg_http/bin/making_a_get_request.dart
|
| diff --git a/recipes/dart_io/pkg_http/bin/making_a_get_request.dart b/recipes/dart_io/pkg_http/bin/making_a_get_request.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0fb051063c6c43ae5ea9323b8d5d17a1aac714a
|
| --- /dev/null
|
| +++ b/recipes/dart_io/pkg_http/bin/making_a_get_request.dart
|
| @@ -0,0 +1,9 @@
|
| +import 'package:http/http.dart' as http;
|
| +
|
| +void main() {
|
| + var url = 'http://httpbin.org/';
|
| + http.get(url).then((response) {
|
| + print("Response status: ${response.statusCode}");
|
| + print("Response body: ${response.body}");
|
| + });
|
| +}
|
|
|