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

Side by Side Diff: sdk/lib/io/http.dart

Issue 14864009: Keep track of when a socket has been destroyed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * HTTP status codes. 8 * HTTP status codes.
9 */ 9 */
10 abstract class HttpStatus { 10 abstract class HttpStatus {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 /** 142 /**
143 * Attaches the HTTP server to an existing [ServerSocket]. When the 143 * Attaches the HTTP server to an existing [ServerSocket]. When the
144 * [HttpServer] is closed, the [HttpServer] will just detach itself, 144 * [HttpServer] is closed, the [HttpServer] will just detach itself,
145 * closing current connections but not closing [serverSocket]. 145 * closing current connections but not closing [serverSocket].
146 */ 146 */
147 factory HttpServer.listenOn(ServerSocket serverSocket) 147 factory HttpServer.listenOn(ServerSocket serverSocket)
148 => new _HttpServer.listenOn(serverSocket); 148 => new _HttpServer.listenOn(serverSocket);
149 149
150 /** 150 /**
151 * Permanently stops this [HttpServer] from listening for new connections. 151 * Permanently stops this [HttpServer] from listening for new
152 * This closes this [Stream] of [HttpRequest]s with a done event. 152 * connections. This closes this [Stream] of [HttpRequest]s with a
153 * done event. The returned future completes when the server is
154 * stopped. For a server started using [bind] or [bindSecure] this
155 * means that the port listened on no longer in use.
153 */ 156 */
154 void close(); 157 Future close();
155 158
156 /** 159 /**
157 * Returns the port that the server is listening on. This can be 160 * Returns the port that the server is listening on. This can be
158 * used to get the actual port used when a value of 0 for [:port:] is 161 * used to get the actual port used when a value of 0 for [:port:] is
159 * specified in the [bind] or [bindSecure] call. 162 * specified in the [bind] or [bindSecure] call.
160 */ 163 */
161 int get port; 164 int get port;
162 165
163 /** 166 /**
164 * Sets the timeout, in seconds, for sessions of this [HttpServer]. 167 * Sets the timeout, in seconds, for sessions of this [HttpServer].
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 class RedirectLimitExceededException extends RedirectException { 1367 class RedirectLimitExceededException extends RedirectException {
1365 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1368 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1366 : super("Redirect limit exceeded", redirects); 1369 : super("Redirect limit exceeded", redirects);
1367 } 1370 }
1368 1371
1369 1372
1370 class RedirectLoopException extends RedirectException { 1373 class RedirectLoopException extends RedirectException {
1371 const RedirectLoopException(List<RedirectInfo> redirects) 1374 const RedirectLoopException(List<RedirectInfo> redirects)
1372 : super("Redirect loop detected", redirects); 1375 : super("Redirect loop detected", redirects);
1373 } 1376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698