1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:44:40 -07:00
go/doc/codelab/wiki
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
..
edit.html doc/codelab/wiki: rename textarea name from Body to body 2011-01-26 17:25:37 +10:00
final-noclosure.go doc: update codelab wiki to fix template.Execute argument order 2011-03-09 12:59:13 +11:00
final-noerror.go doc: update codelab wiki to fix template.Execute argument order 2011-03-09 12:59:13 +11:00
final-parsetemplate.go doc: update codelab wiki to fix template.Execute argument order 2011-03-09 12:59:13 +11:00
final-template.go doc: update codelab wiki to fix template.Execute argument order 2011-03-09 12:59:13 +11:00
final.go template: reverse order of arguments to Execute 2011-02-09 14:23:01 -08:00
get.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
htmlify.go doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
http-sample.go doc: update http handler usage for new signature 2010-09-30 13:19:33 +10:00
index.html doc: update codelab wiki to fix template.Execute argument order 2011-03-09 12:59:13 +11:00
Makefile build: add all-qemu.bash, handful of arm fixes 2011-03-27 23:39:42 -04:00
notemplate.go doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
part1-noerror.go doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
part1.go doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
part2.go doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
srcextract.go srcextract: HTML-escape output if so desired 2011-02-09 14:08:19 -08:00
test_edit.good codelab/wiki: fix build 2011-01-26 12:54:07 -05:00
test_Test.txt.good Wiki codelab, complete with tests. 2010-04-28 12:36:39 +10:00
test_view.good Wiki codelab, complete with tests. 2010-04-28 12:36:39 +10:00
test.sh doc/codelab/wiki: include into windows build 2011-03-07 15:48:39 +11:00
view.html doc/codelab/wiki: update to work with template changes, add to run.bash 2011-01-26 14:56:52 +10:00
wiki.html doc/codelab: correct typo. 2011-05-12 11:21:10 -04:00