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

Issue 6307088: code review 6307088: net/http: clarify client return values in docs (Closed)

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

Description

net/http: clarify client return values in docs Also, fixes one violation found during testing where both response and error could be non-nil when a CheckRedirect test failed. This is arguably a minor API (behavior, not signature) change, but it wasn't documented either way and was inconsistent & non-Go like. Any code depending on the old behavior was wrong anyway.

Patch Set 1 #

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

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

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

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

Total comments: 5

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -33 lines) Patch
M src/pkg/net/http/client.go View 1 2 3 4 5 13 chunks +60 lines, -32 lines 0 comments Download
M src/pkg/net/http/client_test.go View 1 1 chunk +0 lines, -1 line 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/
13 years, 6 months ago (2012-06-13 18:26:20 UTC) #1
bradfitz
One sec, the docs are wrong because we're inconsistent on naming the *http.Response either "r", ...
13 years, 6 months ago (2012-06-13 18:29:37 UTC) #2
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-06-13 18:33:23 UTC) #3
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-06-13 18:40:43 UTC) #4
adg
LGTM
13 years, 6 months ago (2012-06-18 15:33:53 UTC) #5
rsc
http://codereview.appspot.com/6307088/diff/9001/src/pkg/net/http/client.go File src/pkg/net/http/client.go (right): http://codereview.appspot.com/6307088/diff/9001/src/pkg/net/http/client.go#newcode90 src/pkg/net/http/client.go:90: // Either the response or err will be non-nil, ...
13 years, 6 months ago (2012-06-18 15:39:30 UTC) #6
bradfitz
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-06-18 16:02:01 UTC) #7
rsc
LGTM
13 years, 6 months ago (2012-06-19 04:15:33 UTC) #8
bradfitz
13 years, 6 months ago (2012-06-19 16:10:21 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=f7839a55036e ***

net/http: clarify client return values in docs

Also, fixes one violation found during testing where both
response and error could be non-nil when a CheckRedirect test
failed.  This is arguably a minor API (behavior, not
signature) change, but it wasn't documented either way and was
inconsistent & non-Go like.  Any code depending on the old
behavior was wrong anyway.

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

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