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

Issue 4248075: code review 4248075: http: move RemoteAddr & UsingTLS from ResponseWriter to... (Closed)

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

Description

http: move RemoteAddr & UsingTLS from ResponseWriter to Request ResponseWriter.RemoteAddr() string -> Request.RemoteAddr string ResponseWriter.UsingTLS() bool -> Request.TLS *tls.ConnectionState

Patch Set 1 #

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

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

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

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -45 lines) Patch
M src/cmd/godoc/main.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/http/cgi/host.go View 1 1 chunk +6 lines, -2 lines 0 comments Download
M src/pkg/http/cgi/host_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/http/httptest/recorder.go View 1 2 chunks +4 lines, -20 lines 0 comments Download
M src/pkg/http/request.go View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M src/pkg/http/serve_test.go View 1 2 chunks +21 lines, -0 lines 0 comments Download
M src/pkg/http/server.go View 1 5 chunks +15 lines, -19 lines 0 comments Download
M src/pkg/rpc/server.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/websocket/server.go View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13
bradfitz
Hello rsc (cc: gburd, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2011-03-09 19:44:54 UTC) #1
bradfitz
Russ, I left the docs XXXed out. You want to wordsmith? On Wed, Mar 9, ...
13 years, 2 months ago (2011-03-09 19:46:25 UTC) #2
bradfitzgoog
Ping. Not sure if this was missed or whether we're not ready for it yet ...
13 years, 2 months ago (2011-03-10 04:40:19 UTC) #3
rsc
I was hoping to move it into tls.ConnectionState.
13 years, 2 months ago (2011-03-10 04:52:27 UTC) #4
bradfitzgoog
Looks easy to do if Adam doesn't object. Just copy the peer list slice into ...
13 years, 2 months ago (2011-03-10 06:10:01 UTC) #5
bradfitz
Hello rsc, bradfitzwork (cc: gburd, golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2011-03-10 15:27:47 UTC) #6
bradfitz
I've filled in docs now. PTAL. Doc tweaks welcome, though. On Thu, Mar 10, 2011 ...
13 years, 2 months ago (2011-03-10 15:29:15 UTC) #7
rsc
LGTM ResponseWriter is starting to look good! http://codereview.appspot.com/4248075/diff/2003/src/pkg/http/request.go File src/pkg/http/request.go (right): http://codereview.appspot.com/4248075/diff/2003/src/pkg/http/request.go#newcode67 src/pkg/http/request.go:67: // In ...
13 years, 2 months ago (2011-03-10 15:40:46 UTC) #8
bradfitz
Cool. Changed this sentence slightly: // The HTTP server in this package // sets RemoteAddr ...
13 years, 2 months ago (2011-03-10 15:47:26 UTC) #9
rsc
LGTM I think maybe we should drop the port but I will do that separately ...
13 years, 2 months ago (2011-03-10 15:50:17 UTC) #10
bradfitz
We could split it off from RemoteAddr if we stick it elsewhere (another field in ...
13 years, 2 months ago (2011-03-10 16:04:26 UTC) #11
rsc
On Thu, Mar 10, 2011 at 11:04, Brad Fitzpatrick <bradfitz@golang.org> wrote: > We could split ...
13 years, 2 months ago (2011-03-10 16:09:42 UTC) #12
bradfitz
13 years, 2 months ago (2011-03-10 16:17:29 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=0e09be41e7a5 ***

http: move RemoteAddr & UsingTLS from ResponseWriter to Request

ResponseWriter.RemoteAddr() string -> Request.RemoteAddr string
ResponseWriter.UsingTLS() bool -> Request.TLS *tls.ConnectionState

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

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