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

Issue 10414076: Support for cookies in the HTTP library (Closed)

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

Description

Support for cookies in the HTTP library This change adds the list field cookies to all requests and responses. For HttpRequest the cookie list will have all the cookies set by the client in its HttpClientRequest cookie list. These cookies are passed through the "Cookie" HTTP header. For HttpClientResponse the cookie list will have all the cookies set by the server in the HttpResponse cookie list. These cookies are passed through the "Set-Cookie" HTTP header. The parsing of the "Cookie" and "Set-Cookie" headers try to follow RFC 6265. This change does not add a cookie jar in the http client with cookie policy for automatic cookie handling. R=ager@google.com, ajohnsen@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=7943

Patch Set 1 #

Total comments: 22

Patch Set 2 : Addressed review comments from ager@google.com #

Total comments: 2

Patch Set 3 : Addressed second round of comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -10 lines) Patch
M runtime/bin/http.dart View 1 7 chunks +97 lines, -1 line 0 comments Download
M runtime/bin/http_impl.dart View 1 2 13 chunks +272 lines, -2 lines 0 comments Download
M runtime/bin/http_utils.dart View 5 chunks +22 lines, -7 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 2 2 chunks +91 lines, -0 lines 0 comments Download
M tests/standalone/io/http_test.dart View 1 4 chunks +77 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
8 years, 7 months ago (2012-05-23 11:18:53 UTC) #1
Mads Ager (google)
Minor comments and a question about isValid https://chromiumcodereview.appspot.com/10414076/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://chromiumcodereview.appspot.com/10414076/diff/1/runtime/bin/http.dart#newcode280 runtime/bin/http.dart:280: * Indicate ...
8 years, 7 months ago (2012-05-23 13:31:05 UTC) #2
Søren Gjesse
https://chromiumcodereview.appspot.com/10414076/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://chromiumcodereview.appspot.com/10414076/diff/1/runtime/bin/http.dart#newcode280 runtime/bin/http.dart:280: * Indicate that for the header named [name] don't ...
8 years, 7 months ago (2012-05-24 11:34:21 UTC) #3
Mads Ager (google)
LGTM except for use of _valid field. https://chromiumcodereview.appspot.com/10414076/diff/7001/runtime/bin/http_impl.dart File runtime/bin/http_impl.dart (right): https://chromiumcodereview.appspot.com/10414076/diff/7001/runtime/bin/http_impl.dart#newcode526 runtime/bin/http_impl.dart:526: _valid = ...
8 years, 7 months ago (2012-05-24 11:42:35 UTC) #4
Søren Gjesse
8 years, 7 months ago (2012-05-24 12:54:25 UTC) #5
https://chromiumcodereview.appspot.com/10414076/diff/7001/runtime/bin/http_im...
File runtime/bin/http_impl.dart (right):

https://chromiumcodereview.appspot.com/10414076/diff/7001/runtime/bin/http_im...
runtime/bin/http_impl.dart:526: _valid = false;
On 2012/05/24 11:42:35, Mads Ager wrote:
> _valid no longer exists - throw exception and add a test case?

Done.

Powered by Google App Engine
This is Rietveld 408576698