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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 52263005: Add IOSink:flush(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/socket_patch.dart ('k') | sdk/lib/io/io_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index c1ec1bf848d2547a44a5c794844bfd37791bd9f1..2fd3659d374f54aed0f2e016d1f49f5bbf9a8ddb 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -468,6 +468,10 @@ abstract class _HttpOutboundMessage<T> implements IOSink {
return _dataSink.addStream(stream);
}
+ Future flush() {
+ return _dataSink.flush();
+ }
+
Future close() {
return _dataSink.close();
}
@@ -2254,6 +2258,8 @@ class _DetachedSocket extends Stream<List<int>> implements Socket {
void destroy() => _socket.destroy();
+ Future flush() => _socket.flush();
+
Future close() => _socket.close();
Future<Socket> get done => _socket.done;
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | sdk/lib/io/io_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698