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

Issue 9704009: Support parsing HTTP responses where the body length is not known (Closed)

Created:
8 years, 9 months ago by Søren Gjesse
Modified:
8 years, 9 months ago
Reviewers:
Anders Johnsen
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support parsing HTTP responses where the body length is not known The HTTP parser ends the body when the connection is closed. This only implements this in the HTTP parser - it is not yet used in the dart:io HTTP library. R=ajohnsen@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5641

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -39 lines) Patch
M runtime/bin/http_parser.dart View 1 9 chunks +39 lines, -16 lines 0 comments Download
M tests/standalone/src/io/HttpParserTest.dart View 14 chunks +77 lines, -23 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
8 years, 9 months ago (2012-03-14 12:51:32 UTC) #1
Anders Johnsen
LGTM, very cool. I think this will help solve many of the problems I've encountered! ...
8 years, 9 months ago (2012-03-15 11:24:04 UTC) #2
Søren Gjesse
8 years, 9 months ago (2012-03-19 11:31:48 UTC) #3
http://codereview.chromium.org/9704009/diff/1/runtime/bin/http_parser.dart
File runtime/bin/http_parser.dart (right):

http://codereview.chromium.org/9704009/diff/1/runtime/bin/http_parser.dart#ne...
runtime/bin/http_parser.dart:337: if (_remainingContent != null &&
_remainingContent == 0) {
On 2012/03/15 11:24:04, ajohnsen wrote:
> == 0 should be sufficient.

Done.

Powered by Google App Engine
This is Rietveld 408576698