Chromium Code Reviews| Index: recipes/dart_io/pkg_http/bin/reading_the_response_body.dart |
| diff --git a/recipes/dart_io/pkg_http/bin/reading_the_response_body.dart b/recipes/dart_io/pkg_http/bin/reading_the_response_body.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..224a91a8fa8ea1d366ee246eaa877533b96a932e |
| --- /dev/null |
| +++ b/recipes/dart_io/pkg_http/bin/reading_the_response_body.dart |
| @@ -0,0 +1,5 @@ |
| +import 'package:http/http.dart' as http; |
| + |
| +void main() { |
| + http.read("http://httpbin.org/").then(print); |
|
Anders Johnsen
2013/12/06 11:53:28
This is working due to the toString of a response
shailentuli
2013/12/06 18:16:29
Anders, I'm showing the use of http.read() which r
|
| +} |