Chromium Code Reviews| Index: sdk/lib/io/http_impl.dart |
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
| index 44337cae51193e5cce3e2e5365a355a2a96adcc9..54aa4a47e965765cbdeba51840abe52c68329916 100644 |
| --- a/sdk/lib/io/http_impl.dart |
| +++ b/sdk/lib/io/http_impl.dart |
| @@ -1634,13 +1634,13 @@ class _HttpConnection { |
| // HTTP server waiting for socket connections. |
| class _HttpServer extends Stream<HttpRequest> implements HttpServer { |
| - static Future<HttpServer> bind(String host, int port, int backlog) { |
| - return ServerSocket.bind(host, port, backlog).then((socket) { |
| + static Future<HttpServer> bind(host, int port, int backlog) { |
|
Anders Johnsen
2013/05/01 07:50:19
host -> address
Søren Gjesse
2013/05/01 07:55:20
Done.
|
| + return ServerSocket.bind(host, port, backlog: backlog).then((socket) { |
| return new _HttpServer._(socket, true); |
| }); |
| } |
| - static Future<HttpServer> bindSecure(String host, |
| + static Future<HttpServer> bindSecure(host, |
|
Anders Johnsen
2013/05/01 07:50:19
Ditto.
Søren Gjesse
2013/05/01 07:55:20
Done.
|
| int port, |
| int backlog, |
| String certificate_name, |
| @@ -1648,8 +1648,8 @@ class _HttpServer extends Stream<HttpRequest> implements HttpServer { |
| return SecureServerSocket.bind( |
| host, |
| port, |
| - backlog, |
| certificate_name, |
| + backlog: backlog, |
| requestClientCertificate: requestClientCertificate) |
| .then((socket) { |
| return new _HttpServer._(socket, true); |