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

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: Remove delete_handle marker. Created 7 years, 5 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
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/safe_http_server.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 /** 162 /**
163 * Attaches the HTTP server to an existing [ServerSocket]. When the 163 * Attaches the HTTP server to an existing [ServerSocket]. When the
164 * [HttpServer] is closed, the [HttpServer] will just detach itself, 164 * [HttpServer] is closed, the [HttpServer] will just detach itself,
165 * closing current connections but not closing [serverSocket]. 165 * closing current connections but not closing [serverSocket].
166 */ 166 */
167 factory HttpServer.listenOn(ServerSocket serverSocket) 167 factory HttpServer.listenOn(ServerSocket serverSocket)
168 => new _HttpServer.listenOn(serverSocket); 168 => new _HttpServer.listenOn(serverSocket);
169 169
170 /** 170 /**
171 * Permanently stops this [HttpServer] from listening for new connections. 171 * Permanently stops this [HttpServer] from listening for new
172 * This closes this [Stream] of [HttpRequest]s with a done event. 172 * connections. This closes this [Stream] of [HttpRequest]s with a
173 * done event. The returned future completes when the server is
174 * stopped. For a server started using [bind] or [bindSecure] this
175 * means that the port listened on no longer in use.
173 */ 176 */
174 void close(); 177 Future close();
175 178
176 /** 179 /**
177 * Returns the port that the server is listening on. This can be 180 * Returns the port that the server is listening on. This can be
178 * used to get the actual port used when a value of 0 for [:port:] is 181 * used to get the actual port used when a value of 0 for [:port:] is
179 * specified in the [bind] or [bindSecure] call. 182 * specified in the [bind] or [bindSecure] call.
180 */ 183 */
181 int get port; 184 int get port;
182 185
183 /** 186 /**
184 * Sets the timeout, in seconds, for sessions of this [HttpServer]. 187 * Sets the timeout, in seconds, for sessions of this [HttpServer].
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 1420
1418 class RedirectException implements HttpException { 1421 class RedirectException implements HttpException {
1419 final String message; 1422 final String message;
1420 final List<RedirectInfo> redirects; 1423 final List<RedirectInfo> redirects;
1421 1424
1422 const RedirectException(String this.message, 1425 const RedirectException(String this.message,
1423 List<RedirectInfo> this.redirects); 1426 List<RedirectInfo> this.redirects);
1424 1427
1425 String toString() => "RedirectException: $message"; 1428 String toString() => "RedirectException: $message";
1426 } 1429 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/safe_http_server.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698