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

Unified Diff: runtime/bin/http.dart

Issue 10205012: Initial web socket server implementation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ajohnsen@ and ager@ Created 8 years, 8 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
Index: runtime/bin/http.dart
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
index 41a0ac8bdc6a9380e99d717e97b5b89c713f7a9b..70abec15533a9a7b71d27e9cbf755a2da1cba88b 100644
--- a/runtime/bin/http.dart
+++ b/runtime/bin/http.dart
@@ -383,6 +383,16 @@ interface HttpResponse default _HttpResponse {
* having retrieved the output stream will throw an exception.
*/
OutputStream get outputStream();
+
+ /**
+ * Detach the underlying socket from the HTTP server. When the
+ * socket is detached the HTTP server will no longer perform any
+ * operations on it.
+ *
+ * This is normally used when a HTTP upgraded request is received
+ * and the communication should continue with a different protocol.
+ */
+ Socket detachSocket();
}
« no previous file with comments | « runtime/bin/base64.dart ('k') | runtime/bin/http_impl.dart » ('j') | runtime/bin/websocket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698