]> Cypherpunks repositories - gostls13.git/commit
net/http: clarify client return values in docs
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 19 Jun 2012 16:10:14 +0000 (09:10 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 19 Jun 2012 16:10:14 +0000 (09:10 -0700)
commite1d9fcd267e1a827e9841dce4c91def0777a90ee
treecfe5111c52e4895c3366d303af5402f3fbaf2082
parentca2ae27dd08ac33fa2bca010906633d8b8432e4d
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
https://golang.org/cl/6307088
src/pkg/net/http/client.go
src/pkg/net/http/client_test.go