Descriptionhttp: add Flusher type; remove Flush from ResponseWriter
The Flush functionality wasn't removed, but now you have
to test if your ResponseWriter is also a Flusher:
func ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if f, ok := rw.(http.Flusher); ok {
f.Flush()
}
}
Patch Set 1 #Patch Set 2 : diff -r 9da4e71e8f1b https://go.googlecode.com/hg #Patch Set 3 : diff -r 9da4e71e8f1b https://go.googlecode.com/hg #Patch Set 4 : diff -r d9ca86f7a44b https://go.googlecode.com/hg #MessagesTotal messages: 4
|