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

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

Issue 14113006: Fix HttpBodyHandler to handle missing mimeType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix comment. Created 7 years, 8 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 | sdk/lib/io/http_body_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 /** 7 /**
8 * HTTP status codes. 8 * HTTP status codes.
9 */ 9 */
10 abstract class HttpStatus { 10 abstract class HttpStatus {
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 * text/html; charset=utf-8 502 * text/html; charset=utf-8
503 * 503 *
504 * will create a content type object with primary type [:text:], sub 504 * will create a content type object with primary type [:text:], sub
505 * type [:html:] and parameter [:charset:] with value [:utf-8:]. 505 * type [:html:] and parameter [:charset:] with value [:utf-8:].
506 */ 506 */
507 factory ContentType.fromString(String value) { 507 factory ContentType.fromString(String value) {
508 return new _ContentType.fromString(value); 508 return new _ContentType.fromString(value);
509 } 509 }
510 510
511 /** 511 /**
512 * Gets the mime-type, without any parameters.
513 */
514 String get mimeType;
515
516 /**
512 * Gets the primary type. 517 * Gets the primary type.
513 */ 518 */
514 String get primaryType; 519 String get primaryType;
515 520
516 /** 521 /**
517 * Gets the sub type. 522 * Gets the sub type.
518 */ 523 */
519 String get subType; 524 String get subType;
520 525
521 /** 526 /**
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 class RedirectLimitExceededException extends RedirectException { 1303 class RedirectLimitExceededException extends RedirectException {
1299 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1304 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1300 : super("Redirect limit exceeded", redirects); 1305 : super("Redirect limit exceeded", redirects);
1301 } 1306 }
1302 1307
1303 1308
1304 class RedirectLoopException extends RedirectException { 1309 class RedirectLoopException extends RedirectException {
1305 const RedirectLoopException(List<RedirectInfo> redirects) 1310 const RedirectLoopException(List<RedirectInfo> redirects)
1306 : super("Redirect loop detected", redirects); 1311 : super("Redirect loop detected", redirects);
1307 } 1312 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_body_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698