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

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

Issue 12504006: Make IOSink implement StringSink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Correct rebase Created 7 years, 9 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
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 /** 516 /**
517 * Gets the sub type. 517 * Gets the sub type.
518 */ 518 */
519 String get subType; 519 String get subType;
520 520
521 /** 521 /**
522 * Gets the character set. 522 * Gets the character set.
523 */ 523 */
524 String get charset; 524 String get charset;
525
526 /**
527 * Returns the encoding based on the charset parameter. If no
528 * charset parameter is specified the default charset of ISO-8859-1
529 * will be assumed. If the charset cannot be matched with a
530 * supported encoding [:null:] is returned.
531 */
532 Encoding encoding;
nweiz 2013/03/06 20:31:51 This seems like it's supposed to be read-only. It
Søren Gjesse 2013/03/07 16:28:47 Good point. Added static function fromName to Enco
525 } 533 }
526 534
527 535
528 /** 536 /**
529 * Representation of a cookie. For cookies received by the server as 537 * Representation of a cookie. For cookies received by the server as
530 * Cookie header values only [:name:] and [:value:] fields will be 538 * Cookie header values only [:name:] and [:value:] fields will be
531 * set. When building a cookie for the 'set-cookie' header in the server 539 * set. When building a cookie for the 'set-cookie' header in the server
532 * and when receiving cookies in the client as 'set-cookie' headers all 540 * and when receiving cookies in the client as 'set-cookie' headers all
533 * fields can be used. 541 * fields can be used.
534 */ 542 */
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 class RedirectLimitExceededException extends RedirectException { 1129 class RedirectLimitExceededException extends RedirectException {
1122 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1130 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1123 : super("Redirect limit exceeded", redirects); 1131 : super("Redirect limit exceeded", redirects);
1124 } 1132 }
1125 1133
1126 1134
1127 class RedirectLoopException extends RedirectException { 1135 class RedirectLoopException extends RedirectException {
1128 const RedirectLoopException(List<RedirectInfo> redirects) 1136 const RedirectLoopException(List<RedirectInfo> redirects)
1129 : super("Redirect loop detected", redirects); 1137 : super("Redirect loop detected", redirects);
1130 } 1138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698