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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 9653026: Add writeString method to OutputStream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | samples/chat/chat_stress_client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index 6b2bd728105f0e22e4cd5a1f8746fafef31c44ae..b9ac74c6f34ffed47ef2daba406b428a6ad4be37 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -331,7 +331,7 @@ class IsolatedServer extends Isolate {
void _sendJSONResponse(HttpResponse response, Map responseData) {
response.setHeader("Content-Type", "application/json; charset=UTF-8");
- response.writeString(JSON.stringify(responseData));
+ response.outputStream.writeString(JSON.stringify(responseData));
response.outputStream.close();
}
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | samples/chat/chat_stress_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698