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

Issue 10315002: Improve the handling of the connection header (Closed)

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

Description

Improve the handling of the connection header * The connection header can now have multiple values * The persistent connection state can be controlled R=ajohnsen@google.com BUG=dart:1995 TEST=tests/standalone/io/http_connection_header_test.dart Committed: https://code.google.com/p/dart/source/detail?r=7267

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments from ajohnsen@ #

Total comments: 2

Patch Set 3 : Addressed more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -14 lines) Patch
M runtime/bin/http.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M runtime/bin/http_impl.dart View 1 8 chunks +35 lines, -14 lines 0 comments Download
A tests/standalone/io/http_connection_header_test.dart View 1 2 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
8 years, 7 months ago (2012-05-02 07:28:27 UTC) #1
Anders Johnsen
LGTM, This patch adds a field to request/response that will read/set a header value. Is ...
8 years, 7 months ago (2012-05-02 07:37:58 UTC) #2
Søren Gjesse
You did have a point about the field. Changed the code to only operate on ...
8 years, 7 months ago (2012-05-02 11:56:05 UTC) #3
Anders Johnsen
LGTM https://chromiumcodereview.appspot.com/10315002/diff/5/tests/standalone/io/http_connection_header_test.dart File tests/standalone/io/http_connection_header_test.dart (right): https://chromiumcodereview.appspot.com/10315002/diff/5/tests/standalone/io/http_connection_header_test.dart#newcode20 tests/standalone/io/http_connection_header_test.dart:20: headers[HttpHeaders.CONNECTION].some( I'm not sure what's going on here. ...
8 years, 7 months ago (2012-05-02 13:31:48 UTC) #4
Søren Gjesse
8 years, 7 months ago (2012-05-03 10:30:13 UTC) #5
http://codereview.chromium.org/10315002/diff/5/tests/standalone/io/http_conne...
File tests/standalone/io/http_connection_header_test.dart (right):

http://codereview.chromium.org/10315002/diff/5/tests/standalone/io/http_conne...
tests/standalone/io/http_connection_header_test.dart:20:
headers[HttpHeaders.CONNECTION].some(
On 2012/05/02 13:31:48, ajohnsen wrote:
> I'm not sure what's going on here. headers' operator[] returns a List<String>,
> that does not contain a some method. And, it's not wrapped in Expect.isTrue.
Am
> i missing something? :)

The Expect.isTrue was missing - thanks for spotting that. A List is a Collection
which has the some method.

Powered by Google App Engine
This is Rietveld 408576698