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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 2eddf7ca202419f8c5f59e15e6832a2123389257..91461e3754b6955af880a0f512dd9a93d55c73c6 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -522,6 +522,14 @@ abstract class ContentType implements HeaderValue {
* Gets the character set.
*/
String get charset;
+
+ /**
+ * Returns the encoding based on the charset parameter. If no
+ * charset parameter is specified the default charset of ISO-8859-1
+ * will be assumed. If the charset cannot be matched with a
+ * supported encoding [:null:] is returned.
+ */
+ 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
}

Powered by Google App Engine
This is Rietveld 408576698