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

Issue 4543050: code review 4543050: http: add Request.AddBasicAuth method (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by bradfitz
Modified:
14 years ago
Reviewers:
CC:
golang-dev, dsymonds, rsc1
Visibility:
Public.

Description

http: add Request.SetBasicAuth method

Patch Set 1 #

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

Total comments: 7

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M src/pkg/http/request.go View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M src/pkg/http/request_test.go View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
14 years ago (2011-05-13 19:16:58 UTC) #1
dsymonds
http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go File src/pkg/http/request.go (right): http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go#newcode486 src/pkg/http/request.go:486: func (r *Request) AddBasicAuth(username, password string) { Maybe it ...
14 years ago (2011-05-13 19:33:57 UTC) #2
bradfitz
http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go File src/pkg/http/request.go (right): http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go#newcode486 src/pkg/http/request.go:486: func (r *Request) AddBasicAuth(username, password string) { On 2011/05/13 ...
14 years ago (2011-05-13 19:36:47 UTC) #3
dsymonds
LGTM http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go File src/pkg/http/request.go (right): http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go#newcode486 src/pkg/http/request.go:486: func (r *Request) AddBasicAuth(username, password string) { On ...
14 years ago (2011-05-13 19:44:32 UTC) #4
bradfitz
http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go File src/pkg/http/request.go (right): http://codereview.appspot.com/4543050/diff/2001/src/pkg/http/request.go#newcode486 src/pkg/http/request.go:486: func (r *Request) AddBasicAuth(username, password string) { On 2011/05/13 ...
14 years ago (2011-05-13 19:47:55 UTC) #5
rsc1
s/AddBasicAuth/BasicAuth/ You are using Header.Set, not Header.Add, anyway.
14 years ago (2011-05-13 19:48:33 UTC) #6
bradfitz
I'm worried that sounds like an accessor, which would also be reasonable helper method. SetBasicAuth? ...
14 years ago (2011-05-13 19:50:04 UTC) #7
rsc1
Sure, SetBasicAuth.
14 years ago (2011-05-13 19:52:29 UTC) #8
bradfitz
14 years ago (2011-05-13 22:43:49 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=aac9be4fefa1 ***

http: add Request.SetBasicAuth method

R=golang-dev, dsymonds, rsc
CC=golang-dev
http://codereview.appspot.com/4543050
Sign in to reply to this message.

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