commit | 545a1eef6abe1d80b6336ec01696f4787808bae3 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Sun Mar 06 18:59:50 2011 -0800 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Sun Mar 06 18:59:50 2011 -0800 |
tree | 7e1aa140ecbc13d8c632c9a6a50c2d6c8b414283 | |
parent | 8b432848f4fe129c9b1dcb82278313eb7890d803 [diff] |
http: 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(..) } } R=rsc CC=golang-dev https://golang.org/cl/4245064