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

Issue 12440002: Make instances of HeaderValue and ContentType immutable (Closed)

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

Description

Make instances of HeaderValue and ContentType immutable Their parameters map is still mutable though. R=ajohnsen@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=19598

Patch Set 1 #

Patch Set 2 : Updated pkg/http #

Total comments: 6

Patch Set 3 : Addressed review comments from nweiz@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -116 lines) Patch
M pkg/http/lib/src/multipart_file.dart View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M pkg/http/lib/src/multipart_request.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http/lib/src/request.dart View 1 2 3 chunks +13 lines, -4 lines 0 comments Download
M pkg/http/test/http_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http/test/multipart_test.dart View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M pkg/http/test/request_test.dart View 1 2 8 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/io/http.dart View 1 2 5 chunks +26 lines, -22 lines 0 comments Download
M sdk/lib/io/http_headers.dart View 1 2 6 chunks +37 lines, -37 lines 0 comments Download
M sdk/lib/io/string_transformer.dart View 1 2 1 chunk +12 lines, -5 lines 0 comments Download
M tests/standalone/io/http_advanced_test.dart View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 2 5 chunks +33 lines, -20 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Søren Gjesse
7 years, 9 months ago (2013-03-05 11:47:13 UTC) #1
Anders Johnsen
LGTM, nice API change.
7 years, 9 months ago (2013-03-05 11:58:51 UTC) #2
Anders Johnsen
Oh yeah, do we have a bug issue on this?
7 years, 9 months ago (2013-03-05 11:59:09 UTC) #3
Søren Gjesse
Nathan, Bob could you please take a look at the pkg/http changes related to making ...
7 years, 9 months ago (2013-03-05 15:44:40 UTC) #4
nweiz
https://codereview.chromium.org/12440002/diff/4001/pkg/http/lib/src/multipart_file.dart File pkg/http/lib/src/multipart_file.dart (right): https://codereview.chromium.org/12440002/diff/4001/pkg/http/lib/src/multipart_file.dart#newcode77 pkg/http/lib/src/multipart_file.dart:77: encoding.name); This needs to copy all the parameters from ...
7 years, 9 months ago (2013-03-05 20:43:18 UTC) #5
Søren Gjesse
PTAL I changed the constructor for ContentType and also decided to always have all parameters ...
7 years, 9 months ago (2013-03-06 13:23:30 UTC) #6
Søren Gjesse
Opened https://code.google.com/p/dart/issues/detail?id=8951 on the mutability issue.
7 years, 9 months ago (2013-03-06 13:26:17 UTC) #7
nweiz
pkg/http changes LGTM
7 years, 9 months ago (2013-03-06 20:09:33 UTC) #8
Søren Gjesse
7 years, 9 months ago (2013-03-07 07:26:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r19598 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698