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 part of dart.io; |
| 6 |
5 class _HttpHeaders implements HttpHeaders { | 7 class _HttpHeaders implements HttpHeaders { |
6 _HttpHeaders() : _headers = new Map<String, List<String>>(); | 8 _HttpHeaders() : _headers = new Map<String, List<String>>(); |
7 | 9 |
8 List<String> operator[](String name) { | 10 List<String> operator[](String name) { |
9 name = name.toLowerCase(); | 11 name = name.toLowerCase(); |
10 return _headers[name]; | 12 return _headers[name]; |
11 } | 13 } |
12 | 14 |
13 String value(String name) { | 15 String value(String name) { |
14 name = name.toLowerCase(); | 16 name = name.toLowerCase(); |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 642 |
641 String name; | 643 String name; |
642 String value; | 644 String value; |
643 Date expires; | 645 Date expires; |
644 int maxAge; | 646 int maxAge; |
645 String domain; | 647 String domain; |
646 String path; | 648 String path; |
647 bool httpOnly = false; | 649 bool httpOnly = false; |
648 bool secure = false; | 650 bool secure = false; |
649 } | 651 } |
OLD | NEW |