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

Issue 4182086: code review 4182086: http: introduce start of Client and ClientTransport (Closed)

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

Description

http: introduce start of Client and ClientTransport Much yet to come, but this is a safe first step, introducing an in-the-future configurable Client object (where policy for cookies, auth, redirects will live) as well as introducing a ClientTransport interface for sending requests. The CL intentionally ignores everything around the creation and configuration of Clients and merely ports/wraps the old interfaces to/around Client/ClientTransport.

Patch Set 1 #

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

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

Total comments: 11

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -119 lines) Patch
M src/pkg/http/Makefile View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/http/client.go View 1 2 3 4 9 chunks +88 lines, -118 lines 0 comments Download
M src/pkg/http/fs_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/http/transport.go View 1 2 3 4 1 chunk +150 lines, -0 lines 0 comments Download

Messages

Total messages: 11
bradfitz
Hello rsc, dsymonds, nigeltao (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 2 months ago (2011-02-22 05:40:59 UTC) #1
bradfitz
Note: this CL contains almost no new code. In particular I just moved the old ...
14 years, 2 months ago (2011-02-22 05:48:38 UTC) #2
bradfitzgoog
Any thoughts on this? I'll re-sync this on top of petarm's http Header/textproto change once ...
14 years, 2 months ago (2011-02-23 00:18:37 UTC) #3
rsc
On Tue, Feb 22, 2011 at 19:18, Brad Fitzpatrick <bradfitz@google.com> wrote: > Any thoughts on ...
14 years, 2 months ago (2011-02-23 04:00:17 UTC) #4
rsc
Looks good. I assume the next CL will add ClientConfig. http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/Makefile File src/pkg/http/Makefile (right): http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/Makefile#newcode19 ...
14 years, 2 months ago (2011-02-23 17:44:14 UTC) #5
bradfitz
http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/client.go File src/pkg/http/client.go (right): http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/client.go#newcode89 src/pkg/http/client.go:89: // Do sends an HTTP request and returns an ...
14 years, 2 months ago (2011-02-23 19:48:06 UTC) #6
bradfitz
Hello rsc, dsymonds, nigeltao, bradfitzwork (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
14 years, 2 months ago (2011-02-23 19:48:31 UTC) #7
rsc
LGTM http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/transport.go File src/pkg/http/transport.go (right): http://codereview.appspot.com/4182086/diff/3001/src/pkg/http/transport.go#newcode145 src/pkg/http/transport.go:145: DefaultTransport = &transport{} On 2011/02/23 17:44:15, rsc wrote: ...
14 years, 2 months ago (2011-02-23 19:56:21 UTC) #8
bradfitz
Hello rsc, dsymonds, nigeltao, bradfitzwork (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 2 months ago (2011-02-23 20:13:47 UTC) #9
rsc
LGTM
14 years, 2 months ago (2011-02-23 20:15:36 UTC) #10
bradfitz
14 years, 2 months ago (2011-02-23 20:20:55 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=6fa737bf65b9 ***

http: introduce start of Client and ClientTransport

Much yet to come, but this is a safe first step, introducing
an in-the-future configurable Client object (where policy for
cookies, auth, redirects will live) as well as introducing a
ClientTransport interface for sending requests.

The CL intentionally ignores everything around the creation
and configuration of Clients and merely ports/wraps the old
interfaces to/around Client/ClientTransport.

R=rsc, dsymonds, nigeltao, bradfitzwork
CC=golang-dev
http://codereview.appspot.com/4182086

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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