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

Issue 5399043: code review 5399043: net/http: Added interface for a cookie jar. (Closed)

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

Description

net/http: Added interface for a cookie jar. Types implementing CookieJar may be used in a Client to persist cookies.

Patch Set 1 #

Patch Set 2 : diff -r 10818bc3bb2b https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 10818bc3bb2b https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r c93109f5d3ca https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r c93109f5d3ca https://go.googlecode.com/hg/ #

Total comments: 19

Patch Set 6 : diff -r eee062ef2f11 https://go.googlecode.com/hg/ #

Total comments: 10

Patch Set 7 : diff -r f1194e89f56f https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 8 : diff -r e25954278b04 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 9 : diff -r 6cfb9f2415fa https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M src/pkg/net/http/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/net/http/client.go View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download
A src/pkg/net/http/jar.go View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 22
volker.dobler
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 6 months ago (2011-11-16 10:25:10 UTC) #1
volker.dobler
http: Handling cookies while following redirects: Proposal for a cookie jar. This is a proposal ...
12 years, 6 months ago (2011-11-16 12:45:45 UTC) #2
volker.dobler
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-01 13:33:15 UTC) #3
volker.dobler
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-01 13:40:44 UTC) #4
bradfitz
Cool. This is basically the design I was hoping to see. Thanks for doing this. ...
12 years, 5 months ago (2011-12-01 18:14:33 UTC) #5
bradfitz
http://codereview.appspot.com/5399043/diff/8002/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/8002/src/pkg/net/http/client.go#newcode43 src/pkg/net/http/client.go:43: // nil, than each GET and HEAD request gets ...
12 years, 5 months ago (2011-12-01 21:12:06 UTC) #6
volker.dobler
Thanks for the comments. Maybe blackHoleJar is not needed at all as there are just ...
12 years, 5 months ago (2011-12-01 21:35:15 UTC) #7
bradfitz
blackHoleJar is 3 lines and saves 4 lines of nil checks. *shrug* The API can't ...
12 years, 5 months ago (2011-12-01 21:44:31 UTC) #8
volker.dobler
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-02 08:17:59 UTC) #9
volker.dobler
http://codereview.appspot.com/5399043/diff/8002/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/8002/src/pkg/net/http/client.go#newcode43 src/pkg/net/http/client.go:43: // nil, than each GET and HEAD request gets ...
12 years, 5 months ago (2011-12-02 08:18:43 UTC) #10
bradfitz
http://codereview.appspot.com/5399043/diff/10003/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/10003/src/pkg/net/http/client.go#newcode42 src/pkg/net/http/client.go:42: // A nil Jar means cookies are not supported. ...
12 years, 5 months ago (2011-12-02 16:28:44 UTC) #11
volker.dobler
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-02 18:27:32 UTC) #12
volker.dobler
http://codereview.appspot.com/5399043/diff/10003/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/10003/src/pkg/net/http/client.go#newcode42 src/pkg/net/http/client.go:42: // A nil Jar means cookies are not supported. ...
12 years, 5 months ago (2011-12-02 18:28:26 UTC) #13
bradfitz
Sorry, I'd forgotten that this wasn't in yet! Two tiny comments, but nothing real. After ...
12 years, 5 months ago (2011-12-14 00:43:05 UTC) #14
volker.dobler
http://codereview.appspot.com/5399043/diff/5007/src/pkg/net/http/jar.go File src/pkg/net/http/jar.go (right): http://codereview.appspot.com/5399043/diff/5007/src/pkg/net/http/jar.go#newcode1 src/pkg/net/http/jar.go:1: // Copyright 2009 The Go Authors. All rights reserved. ...
12 years, 5 months ago (2011-12-14 08:35:46 UTC) #15
volker.dobler
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-14 08:36:02 UTC) #16
rsc
very nice. http://codereview.appspot.com/5399043/diff/15002/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/15002/src/pkg/net/http/client.go#newcode43 src/pkg/net/http/client.go:43: // If Jar is nil, cookies are ...
12 years, 5 months ago (2011-12-14 21:22:27 UTC) #17
volker.dobler
http://codereview.appspot.com/5399043/diff/15002/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/5399043/diff/15002/src/pkg/net/http/client.go#newcode43 src/pkg/net/http/client.go:43: // If Jar is nil, cookies are not supported. ...
12 years, 5 months ago (2011-12-15 21:58:48 UTC) #18
volker.dobler
Hello bradfitz@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-15 21:59:19 UTC) #19
rsc
LGTM
12 years, 5 months ago (2011-12-16 15:35:50 UTC) #20
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=06e9bc864110 *** net/http: Added interface for a cookie jar. Types implementing CookieJar ...
12 years, 5 months ago (2011-12-16 15:48:43 UTC) #21
rsc
12 years, 5 months ago (2011-12-16 15:48:43 UTC) #22
*** Submitted as http://code.google.com/p/go/source/detail?r=06e9bc864110 ***

net/http: Added interface for a cookie jar.

Types implementing CookieJar may be used in a Client
to persist cookies.

R=bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/5399043

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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