| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:convert' show JSON, UTF8; | 5 import 'dart:convert' show JSON, UTF8; |
| 6 | 6 |
| 7 import 'dart:isolate' show RawReceivePort; | 7 import 'dart:isolate' show RawReceivePort; |
| 8 | 8 |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 continue; | 101 continue; |
| 102 } | 102 } |
| 103 if (request.uri.path != "/") { | 103 if (request.uri.path != "/") { |
| 104 badRequest(request, HttpStatus.NOT_FOUND, "Not found."); | 104 badRequest(request, HttpStatus.NOT_FOUND, "Not found."); |
| 105 continue; | 105 continue; |
| 106 } | 106 } |
| 107 collectLog(new DateTime.now(), request); | 107 collectLog(new DateTime.now(), request); |
| 108 } | 108 } |
| 109 keepAlive.close(); | 109 keepAlive.close(); |
| 110 } | 110 } |
| OLD | NEW |