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

Issue 3794041: code review 3794041: Proxy support for http package. and unit test. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by mattn
Modified:
14 years, 3 months ago
Reviewers:
CC:
agl1, jacek.masiulaniec_gmail.com, adg, rsc, agl, golang-dev
Visibility:
Public.

Description

http: add proxy support Fixes issue 53.

Patch Set 1 #

Patch Set 2 : code review 3794041: Proxy support for http package. #

Total comments: 9

Patch Set 3 : code review 3794041: Proxy support for http package. #

Patch Set 4 : code review 3794041: Proxy support for http package. #

Patch Set 5 : code review 3794041: Proxy support for http package. and unit test. #

Total comments: 11

Patch Set 6 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 7 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 8 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 9 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 10 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 11 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 12 : code review 3794041: Proxy support for http package. and unit test. #

Total comments: 11

Patch Set 13 : code review 3794041: Proxy support for http package. and unit test. #

Patch Set 14 : code review 3794041: Proxy support for http package. and unit test. #

Total comments: 8

Patch Set 15 : code review 3794041: Proxy support for http package. and unit test. #

Total comments: 8

Patch Set 16 : diff -r 1b4bee461bb4 http://go.googlecode.com/hg/ #

Patch Set 17 : diff -r ba58b167f1fc https://go.googlecode.com/hg/ #

Total comments: 14

Patch Set 18 : diff -r 92dee19cd633 http://go.googlecode.com/hg/ #

Patch Set 19 : diff -r 92dee19cd633 http://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 20 : diff -r 80da5b13a4dc http://go.googlecode.com/hg/ #

Patch Set 21 : diff -r 1d32c7df56c8 http://go.googlecode.com/hg/ #

Patch Set 22 : diff -r 1d32c7df56c8 http://go.googlecode.com/hg/ #

Patch Set 23 : diff -r a5e05dfbc017 http://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -8 lines) Patch
M src/pkg/http/client.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +101 lines, -8 lines 0 comments Download
A src/pkg/http/proxy_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 49
mattn
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 5 months ago (2010-12-20 05:59:29 UTC) #1
agl1
http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go#newcode79 src/pkg/http/client.go:79: info := req.URL.RawUserinfo You're taking the login information from ...
14 years, 5 months ago (2010-12-20 15:51:18 UTC) #2
mattn
Hello golang-dev@googlegroups.com, agl1 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 00:18:17 UTC) #3
mattn
Thanks for your review. I updated. And about your suggestion about 'tls.Config', it's working well. ...
14 years, 5 months ago (2010-12-21 00:19:51 UTC) #4
jacekm
http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go#newcode67 src/pkg/http/client.go:67: if err == nil { Reversing the logic (err ...
14 years, 5 months ago (2010-12-21 00:30:20 UTC) #5
mattn
http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go#newcode72 src/pkg/http/client.go:72: no_proxies := strings.Split(no_proxy, ",", -1) Thanks for your review. ...
14 years, 5 months ago (2010-12-21 02:03:41 UTC) #6
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 02:58:04 UTC) #7
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:00:17 UTC) #8
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:07:13 UTC) #9
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:08:26 UTC) #10
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:09:29 UTC) #11
mattn
Thanks a lot! I updated. On 2010/12/21 00:30:20, jacekm wrote: > http://codereview.appspot.com/3794041/diff/2001/src/pkg/http/client.go > File src/pkg/http/client.go ...
14 years, 5 months ago (2010-12-21 03:09:55 UTC) #12
adg
Some tweaks, and a question about behavior. Thanks. http://codereview.appspot.com/3794041/diff/21001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/21001/src/pkg/http/client.go#newcode41 src/pkg/http/client.go:41: no_proxies ...
14 years, 5 months ago (2010-12-21 03:26:38 UTC) #13
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:48:59 UTC) #14
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 03:49:45 UTC) #15
mattn
http://codereview.appspot.com/3794041/diff/21001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/21001/src/pkg/http/client.go#newcode43 src/pkg/http/client.go:43: if hasPort(no_proxy) { On 2010/12/21 03:26:38, adg wrote: > ...
14 years, 5 months ago (2010-12-21 03:49:47 UTC) #16
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 04:08:39 UTC) #17
mattn
14 years, 5 months ago (2010-12-21 04:08:53 UTC) #18
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-21 04:39:08 UTC) #19
mattn
Thanks for your review(s). And sorry about my many posts. On 2010/12/21 04:39:08, mattn wrote: ...
14 years, 5 months ago (2010-12-21 04:39:50 UTC) #20
jacekm
http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go#newcode36 src/pkg/http/client.go:36: func matchNoProxy(addr string) bool { Others additionally implement special ...
14 years, 5 months ago (2010-12-21 20:38:06 UTC) #21
jacekm
http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go#newcode36 src/pkg/http/client.go:36: func matchNoProxy(addr string) bool { Also, support of http_proxy ...
14 years, 5 months ago (2010-12-21 20:42:52 UTC) #22
mattn
http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go#newcode54 src/pkg/http/client.go:54: (p[0] == '.' && tmp == p[1:]) { On ...
14 years, 5 months ago (2010-12-22 00:30:50 UTC) #23
mattn
http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go#newcode137 src/pkg/http/client.go:137: proxy_conn.Write([]byte("CONNECT " + addr + " HTTP/1.0\r\n")) On 2010/12/21 ...
14 years, 5 months ago (2010-12-22 00:58:33 UTC) #24
mattn
http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/47001/src/pkg/http/client.go#newcode142 src/pkg/http/client.go:142: proxy_conn.Read(b) On 2010/12/21 20:38:07, jacekm wrote: > As mentioned ...
14 years, 5 months ago (2010-12-22 01:04:15 UTC) #25
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-22 01:04:38 UTC) #26
mattn
Hello golang-dev@googlegroups.com, agl1, jacek.masiulaniec@gmail.com, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-22 01:19:52 UTC) #27
mattn
I'm looking for any replies or taking another look. :) On 2010/12/22 01:19:52, mattn wrote: ...
14 years, 4 months ago (2010-12-30 17:38:12 UTC) #28
rsc
http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go#newcode63 src/pkg/http/client.go:63: p = p[1:] Is there a spec for how ...
14 years, 4 months ago (2011-01-04 16:52:56 UTC) #29
mattn
Hello agl1, jacek.masiulaniec@gmail.com, adg, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-01-05 00:39:30 UTC) #30
mattn
http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go#newcode63 src/pkg/http/client.go:63: p = p[1:] I refer the code of cURL. ...
14 years, 4 months ago (2011-01-05 00:39:48 UTC) #31
rsc
http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go#newcode123 src/pkg/http/client.go:123: switch { On 2011/01/05 00:39:48, mattn wrote: > proxyURL ...
14 years, 4 months ago (2011-01-19 20:21:11 UTC) #32
mattn
http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/57001/src/pkg/http/client.go#newcode123 src/pkg/http/client.go:123: switch { Do you say about L125 and L138 ...
14 years, 3 months ago (2011-02-03 02:38:25 UTC) #33
rsc
http://codereview.appspot.com/3794041/diff/66001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/66001/src/pkg/http/client.go#newcode99 src/pkg/http/client.go:99: if len(proxy) == 0 { this makes me think ...
14 years, 3 months ago (2011-02-09 05:25:02 UTC) #34
mattn
Hello agl1, jacek.masiulaniec@gmail.com, adg, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
14 years, 3 months ago (2011-02-09 06:59:25 UTC) #35
mattn
Thanks. code become cleanly. http://codereview.appspot.com/3794041/diff/66001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/66001/src/pkg/http/client.go#newcode99 src/pkg/http/client.go:99: if len(proxy) == 0 { ...
14 years, 3 months ago (2011-02-09 07:00:03 UTC) #36
rsc
The code looks great, thanks. The CL description says "and unit test". Maybe you need ...
14 years, 3 months ago (2011-02-10 19:03:32 UTC) #37
mattn
Hello agl1, jacek.masiulaniec@gmail.com, adg, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
14 years, 3 months ago (2011-02-13 14:56:55 UTC) #38
rsc
http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/proxy_test.go File src/pkg/http/proxy_test.go (right): http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/proxy_test.go#newcode21 src/pkg/http/proxy_test.go:21: var matchNoProxyTests = []struct { this should be a ...
14 years, 3 months ago (2011-02-14 17:17:10 UTC) #39
agl1
(Note: you have too many people listed as reviewers.) http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/client.go#newcode34 src/pkg/http/client.go:34: ...
14 years, 3 months ago (2011-02-14 17:35:25 UTC) #40
rsc
On Mon, Feb 14, 2011 at 12:35, <agl@golang.org> wrote: > (Note: you have too many ...
14 years, 3 months ago (2011-02-14 17:37:47 UTC) #41
mattn
http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/76001/src/pkg/http/client.go#newcode34 src/pkg/http/client.go:34: // Return whether given a string matches as NO_PROXY. ...
14 years, 3 months ago (2011-02-15 02:04:55 UTC) #42
mattn
Hello agl1, jacek.masiulaniec@gmail.com, adg, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2011-02-15 02:05:04 UTC) #43
mattn
Hello agl1, jacek.masiulaniec@gmail.com, adg, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2011-02-15 02:05:22 UTC) #44
agl
LGTM. I'll land it when you're ready but I'll let you clean up that comment ...
14 years, 3 months ago (2011-02-15 14:44:32 UTC) #45
mattn
Thanks for your reviews. http://codereview.appspot.com/3794041/diff/75002/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/3794041/diff/75002/src/pkg/http/client.go#newcode36 src/pkg/http/client.go:36: // if true, it use ...
14 years, 3 months ago (2011-02-16 00:06:35 UTC) #46
rsc
Please change the CL description to http: add proxy support Fixes issue 53. thanks.
14 years, 3 months ago (2011-02-16 04:50:19 UTC) #47
rsc
> How do I have to do 'hg XXX' to change CL's description. > I ...
14 years, 3 months ago (2011-02-16 06:08:14 UTC) #48
agl1
14 years, 3 months ago (2011-02-16 19:07:09 UTC) #49
*** Submitted as http://code.google.com/p/go/source/detail?r=45734a031210 ***

http: add proxy support
Fixes issue 53.

R=agl1, jacek.masiulaniec, adg, rsc, agl
CC=golang-dev
http://codereview.appspot.com/3794041

Committer: Adam Langley <agl@golang.org>
Sign in to reply to this message.

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