| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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; | 5 part of dart.io; |
| 6 | 6 |
| 7 class _HttpHeaders implements HttpHeaders { | 7 class _HttpHeaders implements HttpHeaders { |
| 8 _HttpHeaders(String this.protocolVersion) | 8 _HttpHeaders(String this.protocolVersion) |
| 9 : _headers = new Map<String, List<String>>(); | 9 : _headers = new Map<String, List<String>>(); |
| 10 | 10 |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 } | 709 } |
| 710 | 710 |
| 711 while (!done()) { | 711 while (!done()) { |
| 712 String name = parseAttributeName(); | 712 String name = parseAttributeName(); |
| 713 String value = ""; | 713 String value = ""; |
| 714 if (!done() && s[index] == "=") { | 714 if (!done() && s[index] == "=") { |
| 715 index++; // Skip the = character. | 715 index++; // Skip the = character. |
| 716 value = parseAttributeValue(); | 716 value = parseAttributeValue(); |
| 717 } | 717 } |
| 718 if (name == "expires") { | 718 if (name == "expires") { |
| 719 expires = _HttpUtils.parseCookieDate(value); | 719 expires = HttpDate._parseCookieDate(value); |
| 720 } else if (name == "max-age") { | 720 } else if (name == "max-age") { |
| 721 maxAge = int.parse(value); | 721 maxAge = int.parse(value); |
| 722 } else if (name == "domain") { | 722 } else if (name == "domain") { |
| 723 domain = value; | 723 domain = value; |
| 724 } else if (name == "path") { | 724 } else if (name == "path") { |
| 725 path = value; | 725 path = value; |
| 726 } else if (name == "httponly") { | 726 } else if (name == "httponly") { |
| 727 httpOnly = true; | 727 httpOnly = true; |
| 728 } else if (name == "secure") { | 728 } else if (name == "secure") { |
| 729 secure = true; | 729 secure = true; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 | 771 |
| 772 String name; | 772 String name; |
| 773 String value; | 773 String value; |
| 774 DateTime expires; | 774 DateTime expires; |
| 775 int maxAge; | 775 int maxAge; |
| 776 String domain; | 776 String domain; |
| 777 String path; | 777 String path; |
| 778 bool httpOnly = false; | 778 bool httpOnly = false; |
| 779 bool secure = false; | 779 bool secure = false; |
| 780 } | 780 } |
| OLD | NEW |