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

Issue 15736023: Remove hack http client and use the one in dart:io (Closed)

Created:
7 years, 6 months ago by Cutch
Modified:
7 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove hack http client and use the one in dart:io R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=23496

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -256 lines) Patch
M runtime/bin/builtin.dart View 1 2 2 chunks +36 lines, -15 lines 1 comment Download
M runtime/bin/dartutils.h View 1 2 2 chunks +1 line, -10 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 5 chunks +61 lines, -231 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Cutch
7 years, 6 months ago (2013-05-31 16:36:12 UTC) #1
siva
lgtm https://codereview.chromium.org/15736023/diff/3001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/15736023/diff/3001/runtime/bin/builtin.dart#newcode6 runtime/bin/builtin.dart:6: import 'dart:io'; I hope we won't get into ...
7 years, 6 months ago (2013-05-31 21:02:02 UTC) #2
Cutch
https://codereview.chromium.org/15736023/diff/3001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/15736023/diff/3001/runtime/bin/dartutils.cc#newcode266 runtime/bin/dartutils.cc:266: ASSERT(buffer_len != NULL); On 2013/05/31 21:02:02, siva wrote: > ...
7 years, 6 months ago (2013-05-31 21:38:34 UTC) #3
Cutch
Committed patchset #3 manually as r23496 (presubmit successful).
7 years, 6 months ago (2013-05-31 22:05:09 UTC) #4
Søren Gjesse
The handling of the client response body stream needs to be fixed. https://codereview.chromium.org/15736023/diff/9001/runtime/bin/builtin.dart File runtime/bin/builtin.dart ...
7 years, 6 months ago (2013-06-03 09:20:00 UTC) #5
Cutch
7 years, 6 months ago (2013-06-03 17:38:31 UTC) #6
Message was sent while issue was closed.
On 2013/06/03 09:20:00, Søren Gjesse wrote:
> The handling of the client response body stream needs to be fixed.
> 
> https://codereview.chromium.org/15736023/diff/9001/runtime/bin/builtin.dart
> File runtime/bin/builtin.dart (right):
> 
>
https://codereview.chromium.org/15736023/diff/9001/runtime/bin/builtin.dart#n...
> runtime/bin/builtin.dart:35: response.listen((List<int> responseData) {
> This is not sufficient to handle the response body. onData can be called
several
> times followed by onDone. You can use the HttpBodyHandler to do the work:
> 
> client.getUrl(...)
>     .then((HttpClientRequest response) => response.close())
>     .then(HttpBodyHandler.processResponse)
>     .then((HttpClientResponseBody body) {
>       if (body.type == "text") {
>         // The mime type indicated text and body.body is the decoded string
>       } else if (body.type == "binary") {
>         // The mime type indicated binary and body.body is List<int> of the
> whole body.
>       } else {
>         // Other body types.
>       }
>     });
> 
> https://codereview.chromium.org/15736023/diff/9001/runtime/bin/dartutils.cc
> File runtime/bin/dartutils.cc (right):
> 
>
https://codereview.chromium.org/15736023/diff/9001/runtime/bin/dartutils.cc#n...
> runtime/bin/dartutils.cc:329: bufferLen);
> By using the HttpBodyHandler the supported charsets (currently only us-ascii,
> iso-8859-1 and utf-8) of text/ mimetype will be decoded into a string in Dart
> HTTP code.

https://codereview.chromium.org/16305011

Powered by Google App Engine
This is Rietveld 408576698