| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 void removeAll(String name) { | 52 void removeAll(String name) { |
| 53 _checkMutable(); | 53 _checkMutable(); |
| 54 name = name.toLowerCase(); | 54 name = name.toLowerCase(); |
| 55 _headers.remove(name); | 55 _headers.remove(name); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void forEach(void f(String name, List<String> values)) { |
| 59 _headers.forEach(f); |
| 60 } |
| 61 |
| 58 String get host() => _host; | 62 String get host() => _host; |
| 59 | 63 |
| 60 void set host(String host) { | 64 void set host(String host) { |
| 61 _checkMutable(); | 65 _checkMutable(); |
| 62 _host = host; | 66 _host = host; |
| 63 _updateHostHeader(); | 67 _updateHostHeader(); |
| 64 } | 68 } |
| 65 | 69 |
| 66 int get port() => _port; | 70 int get port() => _port; |
| 67 | 71 |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1539 } | 1543 } |
| 1540 | 1544 |
| 1541 | 1545 |
| 1542 class _DetachedSocket implements DetachedSocket { | 1546 class _DetachedSocket implements DetachedSocket { |
| 1543 _DetachedSocket(this._socket, this._unparsedData); | 1547 _DetachedSocket(this._socket, this._unparsedData); |
| 1544 Socket get socket() => _socket; | 1548 Socket get socket() => _socket; |
| 1545 List<int> get unparsedData() => _unparsedData; | 1549 List<int> get unparsedData() => _unparsedData; |
| 1546 Socket _socket; | 1550 Socket _socket; |
| 1547 List<int> _unparsedData; | 1551 List<int> _unparsedData; |
| 1548 } | 1552 } |
| OLD | NEW |