mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 02:50:54 +00:00
Merge pull request #3280 from GNURub/feature/pusher
Add access to pusher
This commit is contained in:
commit
bf0d40bca6
@ -244,3 +244,11 @@ func (r *Response) CloseNotify() <-chan bool {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pusher http.Pusher
|
||||||
|
func (r *Response) Pusher() (pusher http.Pusher) {
|
||||||
|
if pusher, ok := r.ResponseWriter.(http.Pusher); ok {
|
||||||
|
return pusher
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user