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

Issue 16812004: Make some HTTP utility functions public (Closed)

Created:
7 years, 6 months ago by Søren Gjesse
Modified:
7 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make some HTTP utility functions public Added a new static function splitQueryString to the URI class to expose parsing of a query string without constructing a URI. Added class HttpDate in dart:io with a few HTTP date parsing and formatting methods. Also turned some Uri comments into dartdoc. I have not remove the parseQueryString and decodeUrlEncodedString from _HttpUtils as they still do some non standard things that I am not sure we want to add to the URI class. These are: * Supporting semi-colon as separator in query strings (see http://www.w3.org/TR/REC-html40/appendix/notes.html#ampersands-in-uris) * Supporting other encodings than UTF-8 for percent encoded strings R=ajohnsen@google.com BUG=http://dartbug.com/9888 Committed: https://code.google.com/p/dart/source/detail?r=23972

Patch Set 1 #

Patch Set 2 : Minor fixes #

Total comments: 4

Patch Set 3 : Addressed review comments from ajohnsen@ #

Patch Set 4 : Fixed status files after splitting http_date_test.dart #

Total comments: 12

Patch Set 5 : Addressed review comments from floitsch@ #

Patch Set 6 : One more status file update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -190 lines) Patch
M sdk/lib/core/uri.dart View 1 2 3 4 6 chunks +41 lines, -20 lines 0 comments Download
M sdk/lib/io/http_headers.dart View 8 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/io/http_utils.dart View 1 2 4 chunks +135 lines, -109 lines 0 comments Download
M tests/corelib/uri_query_test.dart View 1 2 chunks +10 lines, -0 lines 0 comments Download
M tests/lib/analyzer/analyze_tests.status View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A tests/standalone/io/http_cookie_date_test.dart View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M tests/standalone/io/http_date_test.dart View 1 2 3 chunks +20 lines, -49 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Søren Gjesse
7 years, 6 months ago (2013-06-12 10:52:39 UTC) #1
Anders Johnsen
LGTM! https://codereview.chromium.org/16812004/diff/2001/sdk/lib/io/http_utils.dart File sdk/lib/io/http_utils.dart (right): https://codereview.chromium.org/16812004/diff/2001/sdk/lib/io/http_utils.dart#newcode8 sdk/lib/io/http_utils.dart:8: * Utility functions for working with dates in ...
7 years, 6 months ago (2013-06-12 11:08:45 UTC) #2
floitsch
DBC. https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart#newcode208 sdk/lib/core/uri.dart:208: * have been decoded. If there is no ...
7 years, 6 months ago (2013-06-12 11:59:06 UTC) #3
Søren Gjesse
https://codereview.chromium.org/16812004/diff/2001/sdk/lib/io/http_utils.dart File sdk/lib/io/http_utils.dart (right): https://codereview.chromium.org/16812004/diff/2001/sdk/lib/io/http_utils.dart#newcode8 sdk/lib/io/http_utils.dart:8: * Utility functions for working with dates in HTTP. ...
7 years, 6 months ago (2013-06-12 12:16:00 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart#newcode732 sdk/lib/core/uri.dart:732: if (!element.isEmpty) map[decodeQueryComponent(element)] = ""; What about element.isNotEmpty?
7 years, 6 months ago (2013-06-13 11:38:27 UTC) #5
Søren Gjesse
https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/16812004/diff/8001/sdk/lib/core/uri.dart#newcode732 sdk/lib/core/uri.dart:732: if (!element.isEmpty) map[decodeQueryComponent(element)] = ""; On 2013/06/13 11:38:27, Lasse ...
7 years, 6 months ago (2013-06-13 12:00:53 UTC) #6
Søren Gjesse
7 years, 6 months ago (2013-06-13 12:19:19 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r23972 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698