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

Issue 11363094: Add a multipart HTTP request class. (Closed)

Created:
8 years, 1 month ago by nweiz
Modified:
8 years, 1 month ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a multipart HTTP request class. Committed: https://code.google.com/p/dart/source/detail?r=14651

Patch Set 1 #

Patch Set 2 : Add test file #

Total comments: 37

Patch Set 3 : Code review changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -10 lines) Patch
M pkg/http/lib/http.dart View 1 chunk +2 lines, -0 lines 0 comments Download
A pkg/http/lib/src/multipart_file.dart View 1 2 1 chunk +105 lines, -0 lines 2 comments Download
A pkg/http/lib/src/multipart_request.dart View 1 2 1 chunk +166 lines, -0 lines 0 comments Download
M pkg/http/lib/src/utils.dart View 1 2 4 chunks +49 lines, -10 lines 0 comments Download
A pkg/http/test/multipart_test.dart View 1 2 1 chunk +206 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
8 years, 1 month ago (2012-11-06 02:15:44 UTC) #1
Bob Nystrom
https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart File pkg/http/lib/src/multipart_file.dart (right): https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart#newcode31 pkg/http/lib/src/multipart_file.dart:31: bool get finalized => _finalized; How about "isFinalized" here? ...
8 years, 1 month ago (2012-11-06 22:00:08 UTC) #2
nweiz
https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart File pkg/http/lib/src/multipart_file.dart (right): https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart#newcode31 pkg/http/lib/src/multipart_file.dart:31: bool get finalized => _finalized; On 2012/11/06 22:00:08, Bob ...
8 years, 1 month ago (2012-11-06 23:15:56 UTC) #3
Bob Nystrom
One suggestion but LGTM either way. https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart File pkg/http/lib/src/multipart_file.dart (right): https://codereview.chromium.org/11363094/diff/1001/pkg/http/lib/src/multipart_file.dart#newcode38 pkg/http/lib/src/multipart_file.dart:38: /// [contentType] currently ...
8 years, 1 month ago (2012-11-07 00:50:26 UTC) #4
nweiz
8 years, 1 month ago (2012-11-07 20:53:28 UTC) #5
https://codereview.chromium.org/11363094/diff/3002/pkg/http/lib/src/multipart...
File pkg/http/lib/src/multipart_file.dart (right):

https://codereview.chromium.org/11363094/diff/3002/pkg/http/lib/src/multipart...
pkg/http/lib/src/multipart_file.dart:68: // Make a copy of the original
contentType so we can modify charset.
On 2012/11/07 00:50:26, Bob Nystrom wrote:
> If this is the motivation, maybe add a clone method to ContentType?

I think there's a broader language-level (or at least all-libraries-level) issue
of "how do I clone an object?". I don't think the solution is to add one-off
clone methods to every class that we happen to want to clone somewhere. I
suspect something better will come out of the discussions on serialization,
since the problems are related.

Powered by Google App Engine
This is Rietveld 408576698