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 /** | 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 Loading... |
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 Loading... |
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 } |
OLD | NEW |