Chromium Code Reviews| Index: runtime/bin/http.dart |
| =================================================================== |
| --- runtime/bin/http.dart (revision 6032) |
| +++ runtime/bin/http.dart (working copy) |
| @@ -69,6 +69,13 @@ |
| void listen(String host, int port, [int backlog]); |
| /** |
| + * Attach the HTTP server to an existing ServerSocket. If the server is |
| + * closed, the HttpServer will just detach itself, and not close |
| + * [serverSocket]. |
| + */ |
| + void attachTo(ServerSocket serverSocket); |
|
Søren Gjesse
2012/04/02 07:42:15
How about calling this listenOn - it somehow match
|
| + |
| + /** |
| * Stop server listening. |
| */ |
| void close(); |