diff --git a/context/context.go b/context/context.go index 8b32062c..394a4e31 100644 --- a/context/context.go +++ b/context/context.go @@ -244,3 +244,11 @@ func (r *Response) CloseNotify() <-chan bool { } return nil } + +// Pusher http.Pusher +func (r *Response) Pusher() (pusher http.Pusher) { + if pusher, ok := r.ResponseWriter.(http.Pusher); ok { + return pusher + } + return nil +} \ No newline at end of file