| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class _HttpHeaders implements HttpHeaders { | 5 class _HttpHeaders implements HttpHeaders { |
| 6 _HttpHeaders() : _headers = new Map<String, List<String>>(); | 6 _HttpHeaders() : _headers = new Map<String, List<String>>(); |
| 7 | 7 |
| 8 List<String> operator[](String name) { | 8 List<String> operator[](String name) { |
| 9 name = name.toLowerCase(); | 9 name = name.toLowerCase(); |
| 10 return _headers[name]; | 10 return _headers[name]; |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 _server.close(); | 1540 _server.close(); |
| 1541 } | 1541 } |
| 1542 _server = null; | 1542 _server = null; |
| 1543 for (_HttpConnection connection in _connections) { | 1543 for (_HttpConnection connection in _connections) { |
| 1544 connection._destroy(); | 1544 connection._destroy(); |
| 1545 } | 1545 } |
| 1546 _connections.clear(); | 1546 _connections.clear(); |
| 1547 } | 1547 } |
| 1548 | 1548 |
| 1549 int get port { | 1549 int get port { |
| 1550 if (_server === null) { | 1550 if (_server == null) { |
| 1551 throw new HttpException("The HttpServer is not listening on a port."); | 1551 throw new HttpException("The HttpServer is not listening on a port."); |
| 1552 } | 1552 } |
| 1553 return _server.port; | 1553 return _server.port; |
| 1554 } | 1554 } |
| 1555 | 1555 |
| 1556 void set onError(void callback(e)) { | 1556 void set onError(void callback(e)) { |
| 1557 _onError = callback; | 1557 _onError = callback; |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 set sessionTimeout(int timeout) { | 1560 set sessionTimeout(int timeout) { |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2655 | 2655 |
| 2656 | 2656 |
| 2657 class _RedirectInfo implements RedirectInfo { | 2657 class _RedirectInfo implements RedirectInfo { |
| 2658 const _RedirectInfo(int this.statusCode, | 2658 const _RedirectInfo(int this.statusCode, |
| 2659 String this.method, | 2659 String this.method, |
| 2660 Uri this.location); | 2660 Uri this.location); |
| 2661 final int statusCode; | 2661 final int statusCode; |
| 2662 final String method; | 2662 final String method; |
| 2663 final Uri location; | 2663 final Uri location; |
| 2664 } | 2664 } |
| OLD | NEW |