1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00
documize/vendor/github.com/codegangsta/negroni/response_writer_pusher.go
Harvey Kandola fd693f4ff4 go dep
Migrated from plain /vendor to go dep
2018-02-14 15:23:46 +00:00

16 lines
316 B
Go

//+build go1.8
package negroni
import (
"fmt"
"net/http"
)
func (rw *responseWriter) Push(target string, opts *http.PushOptions) error {
pusher, ok := rw.ResponseWriter.(http.Pusher)
if ok {
return pusher.Push(target, opts)
}
return fmt.Errorf("the ResponseWriter doesn't support the Pusher interface")
}