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

Issue 11825010: Update pkg/http to use the new async APIs. (Closed)

Created:
7 years, 11 months ago by nweiz
Modified:
7 years, 11 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update pkg/http to use the new async APIs. Committed: https://code.google.com/p/dart/source/detail?r=16834

Patch Set 1 #

Total comments: 37

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -197 lines) Patch
M pkg/http/lib/http.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/http/lib/src/base_client.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/http/lib/src/base_request.dart View 1 3 chunks +22 lines, -18 lines 0 comments Download
A pkg/http/lib/src/byte_stream.dart View 1 1 chunk +36 lines, -0 lines 0 comments Download
M pkg/http/lib/src/io_client.dart View 4 chunks +6 lines, -7 lines 0 comments Download
M pkg/http/lib/src/mock_client.dart View 4 chunks +4 lines, -7 lines 0 comments Download
M pkg/http/lib/src/multipart_file.dart View 5 chunks +14 lines, -13 lines 0 comments Download
M pkg/http/lib/src/multipart_request.dart View 4 chunks +23 lines, -15 lines 0 comments Download
M pkg/http/lib/src/request.dart View 2 chunks +6 lines, -8 lines 0 comments Download
M pkg/http/lib/src/response.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/http/lib/src/streamed_request.dart View 2 chunks +14 lines, -19 lines 0 comments Download
M pkg/http/lib/src/streamed_response.dart View 2 chunks +11 lines, -5 lines 0 comments Download
M pkg/http/lib/src/utils.dart View 1 2 chunks +140 lines, -30 lines 0 comments Download
M pkg/http/test/client_test.dart View 1 chunk +14 lines, -19 lines 0 comments Download
M pkg/http/test/http_test.dart View 13 chunks +18 lines, -22 lines 0 comments Download
M pkg/http/test/mock_client_test.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M pkg/http/test/multipart_test.dart View 5 chunks +8 lines, -6 lines 0 comments Download
M pkg/http/test/request_test.dart View 2 chunks +5 lines, -11 lines 0 comments Download
M pkg/http/test/response_test.dart View 2 chunks +8 lines, -7 lines 0 comments Download
M pkg/http/test/utils.dart View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
7 years, 11 months ago (2013-01-08 23:11:34 UTC) #1
Bob Nystrom
https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/base_request.dart File pkg/http/lib/src/base_request.dart (right): https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/base_request.dart#newcode96 pkg/http/lib/src/base_request.dart:96: Stream<List<int>> finalize() { I think I understand why it's ...
7 years, 11 months ago (2013-01-08 23:50:49 UTC) #2
nweiz
https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/base_request.dart File pkg/http/lib/src/base_request.dart (right): https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/base_request.dart#newcode96 pkg/http/lib/src/base_request.dart:96: Stream<List<int>> finalize() { On 2013/01/08 23:50:49, Bob Nystrom wrote: ...
7 years, 11 months ago (2013-01-09 00:52:11 UTC) #3
Bob Nystrom
LGTM! https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart File pkg/http/lib/src/utils.dart (right): https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart#newcode282 pkg/http/lib/src/utils.dart:282: }); On 2013/01/09 00:52:11, nweiz wrote: > On ...
7 years, 11 months ago (2013-01-09 03:00:43 UTC) #4
nweiz
https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart File pkg/http/lib/src/utils.dart (right): https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart#newcode282 pkg/http/lib/src/utils.dart:282: }); On 2013/01/09 03:00:43, Bob Nystrom wrote: > On ...
7 years, 11 months ago (2013-01-09 03:07:40 UTC) #5
Bob Nystrom
On 2013/01/09 03:07:40, nweiz wrote: > https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart > File pkg/http/lib/src/utils.dart (right): > > https://codereview.chromium.org/11825010/diff/1/pkg/http/lib/src/utils.dart#newcode282 > ...
7 years, 11 months ago (2013-01-09 16:05:37 UTC) #6
nweiz
7 years, 11 months ago (2013-01-09 20:34:30 UTC) #7
Message was sent while issue was closed.
On 2013/01/09 16:05:37, Bob Nystrom wrote:
> Works for me, especially since the docs explicitly encourage that. (Though
that
> does raise the question of why even have the optional arg in then()...)

It's useful in the specific case where you need to catch an error in the future
but pass on errors from the then() handler, similar to the begin/rescue/else
pattern in Ruby.

Powered by Google App Engine
This is Rietveld 408576698