1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:31:21 -06:00
go/src/pkg/rpc
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
..
jsonrpc update tree for package net changes 2011-03-28 23:28:53 -04:00
client.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
debug.go template: reverse order of arguments to Execute 2011-02-09 14:23:01 -08:00
Makefile build: no required environment variables 2010-08-18 10:08:49 -04:00
server_test.go rpc: run benchmarks over HTTP as well as direct network connections. 2011-04-26 16:16:51 -07:00
server.go rpc: allow the argument (first arg of method) to be a value rather than a pointer. 2011-04-26 15:07:25 -07:00