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

Issue 18576006: Remove _HttpUtils from dart:io. (Closed)

Created:
7 years, 5 months ago by Anders Johnsen
Modified:
7 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove _HttpUtils from dart:io. The Uri rewrite had all but one of these functions public available, so they are used insted. The decodeHttpEntityString was only used by HttpMultipartFormData, so moved to that class. The function parseCookieDate was moved to HttpDate as a private function. Renamed the file http_utils.dart to http_date.dart to match the content. BUG= R=lrn@google.com, whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=24783

Patch Set 1 #

Total comments: 14

Patch Set 2 : Updated comments and add encoding tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -721 lines) Patch
M sdk/lib/core/uri.dart View 1 5 chunks +33 lines, -8 lines 0 comments Download
M sdk/lib/io/http_body_impl.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + sdk/lib/io/http_date.dart View 2 chunks +2 lines, -144 lines 0 comments Download
M sdk/lib/io/http_headers.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/http_multipart_form_data_impl.dart View 2 chunks +39 lines, -2 lines 0 comments Download
D sdk/lib/io/http_utils.dart View 1 chunk +0 lines, -458 lines 0 comments Download
M sdk/lib/io/io.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/iolib_sources.gypi View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_body_test.dart View 1 1 chunk +16 lines, -1 line 0 comments Download
M tests/standalone/io/http_cookie_date_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 chunk +1 line, -1 line 0 comments Download
D tests/standalone/io/url_encoding_test.dart View 1 chunk +0 lines, -96 lines 0 comments Download
M tests/standalone/standalone.status View 3 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Anders Johnsen
7 years, 5 months ago (2013-07-04 13:02:54 UTC) #1
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart#newcode774 sdk/lib/core/uri.dart:774: {String decodeString(List<int> bytes): decodeUtf8}) { Document the method. ...
7 years, 5 months ago (2013-07-04 14:56:33 UTC) #2
Bill Hesse
lgtm https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart#newcode914 sdk/lib/core/uri.dart:914: * A JavaScript-like decodeURI function. It unescapes the ...
7 years, 5 months ago (2013-07-05 08:52:13 UTC) #3
Anders Johnsen
Thanks, landing. https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/18576006/diff/1/sdk/lib/core/uri.dart#newcode774 sdk/lib/core/uri.dart:774: {String decodeString(List<int> bytes): decodeUtf8}) { On 2013/07/04 ...
7 years, 5 months ago (2013-07-05 09:51:28 UTC) #4
Anders Johnsen
7 years, 5 months ago (2013-07-05 09:51:51 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r24783 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698