Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15794)

Issue 6849092: code review 6849092: net/http/cookiejar: new package. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by nigeltao
Modified:
11 years, 4 months ago
Reviewers:
CC:
bradfitz, volker.dobler, rsc, golang-dev
Visibility:
Public.

Description

exp/cookiejar: new package. This CL defines the API. Implementation will come in follow-up CLs. Update issue 1960.

Patch Set 1 #

Patch Set 2 : diff -r f2755950769b https://code.google.com/p/go #

Patch Set 3 : diff -r f2755950769b https://code.google.com/p/go #

Patch Set 4 : diff -r f2755950769b https://code.google.com/p/go #

Patch Set 5 : diff -r f2755950769b https://code.google.com/p/go #

Total comments: 22

Patch Set 6 : diff -r cda840e2befc https://code.google.com/p/go #

Total comments: 2

Patch Set 7 : diff -r cda840e2befc https://code.google.com/p/go #

Patch Set 8 : diff -r 801594ac5efd https://code.google.com/p/go #

Patch Set 9 : diff -r 801594ac5efd https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -0 lines) Patch
A src/pkg/exp/cookiejar/jar.go View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A src/pkg/exp/cookiejar/storage.go View 1 2 3 4 5 6 7 1 chunk +101 lines, -0 lines 0 comments Download
A src/pkg/exp/cookiejar/storage_test.go View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 13
nigeltao
Hello bradfitz@golang.org, dr.volker.dobler@gmail.com (cc: golang-dev@googlegroups.com, rsc@golang.org), I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-11-23 06:48:09 UTC) #1
rsc
LGTM https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/jar.go File src/pkg/net/http/cookiejar/jar.go (right): https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/jar.go#newcode5 src/pkg/net/http/cookiejar/jar.go:5: // Package cookiejar provides a http.CookieJar implementation that ...
11 years, 4 months ago (2012-11-25 15:58:51 UTC) #2
volker.dobler
Nothing is fundamentally wrong with this API, but I admit I don't see what the ...
11 years, 4 months ago (2012-11-25 20:50:58 UTC) #3
rsc
There is only one Jar implementation here. The Storage interface is structured so that it ...
11 years, 4 months ago (2012-11-25 22:21:40 UTC) #4
nigeltao
The rationale for this design, as bradfitz mused earlier, is that the implementor of an ...
11 years, 4 months ago (2012-11-25 23:22:35 UTC) #5
volker.dobler
I see. Why not taking the identifying (name,domain,path)-tuple out of the opaque Data like this: ...
11 years, 4 months ago (2012-11-26 00:26:39 UTC) #6
nigeltao
https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/jar.go File src/pkg/net/http/cookiejar/jar.go (right): https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/jar.go#newcode56 src/pkg/net/http/cookiejar/jar.go:56: // TODO: how do we reject HttpOnly cookies? Do ...
11 years, 4 months ago (2012-11-26 00:54:12 UTC) #7
nigeltao
On Mon, Nov 26, 2012 at 11:54 AM, <nigeltao@golang.org> wrote: > We could move name/domain/path ...
11 years, 4 months ago (2012-11-26 03:38:24 UTC) #8
rsc
I haven't thought enough about whether the Subkey needs to be exposed. https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/storage_test.go File src/pkg/net/http/cookiejar/storage_test.go ...
11 years, 4 months ago (2012-11-26 03:52:55 UTC) #9
nigeltao
https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/storage_test.go File src/pkg/net/http/cookiejar/storage_test.go (right): https://codereview.appspot.com/6849092/diff/10001/src/pkg/net/http/cookiejar/storage_test.go#newcode12 src/pkg/net/http/cookiejar/storage_test.go:12: testCases := map[string]bool{ On 2012/11/26 03:52:55, rsc wrote: > ...
11 years, 4 months ago (2012-11-26 04:01:10 UTC) #10
volker.dobler
LGTM I wonder if cookiejar should be located under exp: Handling IDNs properly will require ...
11 years, 4 months ago (2012-11-26 07:58:15 UTC) #11
nigeltao
On Mon, Nov 26, 2012 at 6:58 PM, <dr.volker.dobler@gmail.com> wrote: > I wonder if cookiejar ...
11 years, 4 months ago (2012-11-27 07:18:33 UTC) #12
nigeltao
11 years, 4 months ago (2012-11-27 07:21:24 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=69e2f3d33300 ***

exp/cookiejar: new package.

This CL defines the API. Implementation will come in follow-up CLs.

Update issue 1960.

R=bradfitz, dr.volker.dobler, rsc
CC=golang-dev
http://codereview.appspot.com/6849092
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b