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

Side by Side Diff: runtime/bin/http_impl.dart

Issue 10918118: Fix an analyser error in the http_impl. The code works fine on the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | 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) 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
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 this._primaryType = "", String this._subType = ""]); 430 _ContentType([String primaryType = "", String subType = ""])
431 : _primaryType = primaryType, _subType = subType;
431 432
432 _ContentType.fromString(String value) : super.fromString(value); 433 _ContentType.fromString(String value) : super.fromString(value);
433 434
434 String get value => "$_primaryType/$_subType"; 435 String get value => "$_primaryType/$_subType";
435 436
436 void set value(String s) { 437 void set value(String s) {
437 int index = s.indexOf("/"); 438 int index = s.indexOf("/");
438 if (index == -1 || index == (s.length - 1)) { 439 if (index == -1 || index == (s.length - 1)) {
439 primaryType = s.trim().toLowerCase(); 440 primaryType = s.trim().toLowerCase();
440 subType = ""; 441 subType = "";
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 2171
2171 2172
2172 class _RedirectInfo implements RedirectInfo { 2173 class _RedirectInfo implements RedirectInfo {
2173 const _RedirectInfo(int this.statusCode, 2174 const _RedirectInfo(int this.statusCode,
2174 String this.method, 2175 String this.method,
2175 Uri this.location); 2176 Uri this.location);
2176 final int statusCode; 2177 final int statusCode;
2177 final String method; 2178 final String method;
2178 final Uri location; 2179 final Uri location;
2179 } 2180 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698