Descriptionhttp: add Hijacker type; remove Hijack from ResponseWriter
The Hijack functionality wasn't removed, but now you have
to test if your ResponseWriter is also a Hijacker:
func ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if hj, ok := rw.(http.Hijacker); ok {
hj.Hijack(..)
}
}
Patch Set 1 #Patch Set 2 : diff -r 0789311c2e60 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 0789311c2e60 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 0789311c2e60 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 1ba6a90e1545 https://go.googlecode.com/hg/ #
Total comments: 4
MessagesTotal messages: 16
|