Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: sdk/lib/io/http_headers.dart

Issue 18576006: Remove _HttpUtils from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated comments and add encoding tests. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/http_date.dart ('k') | sdk/lib/io/http_multipart_form_data_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/io/http_date.dart ('k') | sdk/lib/io/http_multipart_form_data_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698