1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00
go/src
Brad Fitzpatrick 05a1b7ec41 http: remove finalURL from Client.Get; move to Response
This CL:

-- removes Response.RequestMethod string
-- adds Response.Request *Request
-- removes the finalURL result parameter from client.Get()
-- adds a gofix rule for callers of http.Get which assign
   the final url to the blank identifier; warning otherwise

Caller who did:

res, finalURL, err := http.Get(...)

now need to do:

res, err := http.Get(...)
if err != nil {
   ...
}
finalURL := res.Request.URL.String()

R=rsc
CC=golang-dev
https://golang.org/cl/4535056
2011-05-13 07:31:24 -07:00
..
cmd http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
lib9 lib9/create.c: delete unused variable 2011-04-13 23:12:48 -07:00
libbio build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
libmach libmach: fix warnings. 2011-04-14 23:58:08 -04:00
pkg http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
all-qemu.bash all-qemu.bash: remove DISABLE_NET_TESTS 2011-04-26 00:16:12 -04:00
all.bash
clean.bash build: reenable clean.bash without gomake 2011-03-21 00:27:50 -03:00
env.bash rc/env.bash: fix for Go tool-chain build on windows under msys. 2011-04-23 11:34:08 -07:00
make.bash make.bash: remove old bash version of gotest on Windows 2011-05-04 11:16:55 +10:00
Make.ccmd make: add nuke target for C commands and libs 2011-05-11 22:53:42 -04:00
Make.clib make: add nuke target for C commands and libs 2011-05-11 22:53:42 -04:00
Make.cmd make: add nuke target for C commands and libs 2011-05-11 22:53:42 -04:00
Make.common make: prevent rm provoking 'text file busy' errors. 2011-04-15 08:25:44 -04:00
Make.inc goinstall: handle $(GOOS) and $(GOARCH) in filenames 2011-03-07 10:54:53 -05:00
Make.pkg goinstall: support GOPATH; building and installing outside the Go tree 2011-04-27 11:00:34 +10:00
quietgcc.bash build: use gcc -Werror 2011-04-13 16:18:09 -04:00
run.bash tutorial: replace the forever loops with finite counts in sieve programs. 2011-04-27 09:59:27 -07:00
sudo.bash
version.bash version.bash: strip changeset hash from 'hg tags' output 2011-04-04 10:06:09 +10:00