Unverified Commit bf0d40bc authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3280 from GNURub/feature/pusher

Add access to pusher
parents 9dd7d19c 48e6658e
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment