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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 12834005: Fixing documentation for HttpRequest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 0f07ca96b9208a8af3a36809553888bb23cf3d9d..edf1fe7a485bcbe2bf884b5f0e566a7f71056348 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -13116,8 +13116,9 @@ class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio
* wish to retrieve the HTML of the top-level page and print it out.
* The easiest way to do that would be:
*
- * var httpRequest = HttpRequest.get('http://api.dartlang.org',
- * (request) => print(request.responseText));
+ * HttpRequest.getString('http://api.dartlang.org').then((response) {
+ * print(response);
+ * });
*
* **Important**: With the default behavior of this class, your
* code making the request should be served from the same origin (domain name,
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698