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

Unified Diff: pkg/http_server/lib/src/http_body.dart

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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
« no previous file with comments | « pkg/http_server/lib/http_server.dart ('k') | pkg/http_server/lib/src/http_body_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/lib/src/http_body.dart
diff --git a/pkg/http_server/lib/src/http_body.dart b/pkg/http_server/lib/src/http_body.dart
index 422f9dcb0e658c7b10741054901741a0329b6eff..f05d5b22e04308ee4b730c67d052738a00aabc03 100644
--- a/pkg/http_server/lib/src/http_body.dart
+++ b/pkg/http_server/lib/src/http_body.dart
@@ -103,7 +103,7 @@ class HttpBodyHandler
* `multipart/form-data` content correctly. See the class comment
* for more information on `multipart/form-data`.
*/
- HttpBodyHandler({Encoding defaultEncoding: Encoding.UTF_8})
+ HttpBodyHandler({Encoding defaultEncoding: UTF8})
: _transformer = new _HttpBodyHandlerTransformer(defaultEncoding);
/**
@@ -114,7 +114,7 @@ class HttpBodyHandler
*/
static Future<HttpRequestBody> processRequest(
HttpRequest request,
- {Encoding defaultEncoding: Encoding.UTF_8}) {
+ {Encoding defaultEncoding: UTF8}) {
return _HttpBodyHandler.processRequest(request, defaultEncoding);
}
@@ -125,7 +125,7 @@ class HttpBodyHandler
*/
static Future<HttpClientResponseBody> processResponse(
HttpClientResponse response,
- {Encoding defaultEncoding: Encoding.UTF_8}) {
+ {Encoding defaultEncoding: UTF8}) {
return _HttpBodyHandler.processResponse(response, defaultEncoding);
}
« no previous file with comments | « pkg/http_server/lib/http_server.dart ('k') | pkg/http_server/lib/src/http_body_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698