| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 expect(";"); | 420 expect(";"); |
| 421 parseParameters(); | 421 parseParameters(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 String value; | 424 String value; |
| 425 Map<String, String> _parameters; | 425 Map<String, String> _parameters; |
| 426 } | 426 } |
| 427 | 427 |
| 428 | 428 |
| 429 class _ContentType extends _HeaderValue implements ContentType { | 429 class _ContentType extends _HeaderValue implements ContentType { |
| 430 _ContentType([String primaryType = "", String subType = ""]) | 430 _ContentType(String primaryType, String subType) |
| 431 : _primaryType = primaryType, _subType = subType; | 431 : _primaryType = primaryType, _subType = subType, super(""); |
| 432 | 432 |
| 433 _ContentType.fromString(String value) : super.fromString(value); | 433 _ContentType.fromString(String value) : super.fromString(value); |
| 434 | 434 |
| 435 String get value => "$_primaryType/$_subType"; | 435 String get value => "$_primaryType/$_subType"; |
| 436 | 436 |
| 437 void set value(String s) { | 437 void set value(String s) { |
| 438 int index = s.indexOf("/"); | 438 int index = s.indexOf("/"); |
| 439 if (index == -1 || index == (s.length - 1)) { | 439 if (index == -1 || index == (s.length - 1)) { |
| 440 primaryType = s.trim().toLowerCase(); | 440 primaryType = s.trim().toLowerCase(); |
| 441 subType = ""; | 441 subType = ""; |
| (...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 | 2179 |
| 2180 | 2180 |
| 2181 class _RedirectInfo implements RedirectInfo { | 2181 class _RedirectInfo implements RedirectInfo { |
| 2182 const _RedirectInfo(int this.statusCode, | 2182 const _RedirectInfo(int this.statusCode, |
| 2183 String this.method, | 2183 String this.method, |
| 2184 Uri this.location); | 2184 Uri this.location); |
| 2185 final int statusCode; | 2185 final int statusCode; |
| 2186 final String method; | 2186 final String method; |
| 2187 final Uri location; | 2187 final Uri location; |
| 2188 } | 2188 } |
| OLD | NEW |