Significant extension to http.Response, which now adheres to the

usage pattern of http.Request and paves the way to persistent connection
handling.

R=rsc
CC=golang-dev
https://golang.org/cl/185043
This commit is contained in:
Petar Maymounkov 2010-01-18 21:46:59 -08:00 committed by Russ Cox
parent 4f8117d9eb
commit 914c626cae
7 changed files with 550 additions and 96 deletions

View file

@ -90,7 +90,7 @@ func handshake(resourceName, host, origin, location, protocol string, br *bufio.
}
bw.WriteString("\r\n")
bw.Flush()
resp, err := http.ReadResponse(br)
resp, err := http.ReadResponse(br, "GET")
if err != nil {
return
}