add iswebsocket method
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -74,6 +74,10 @@ func (input *BeegoInput) IsSecure() bool { | ... | @@ -74,6 +74,10 @@ func (input *BeegoInput) IsSecure() bool { |
| 74 | return input.Scheme() == "https" | 74 | return input.Scheme() == "https" |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | func (input *BeegoInput) IsWebsocket() bool { | ||
| 78 | return input.Header("Upgrade") == "websocket" | ||
| 79 | } | ||
| 80 | |||
| 77 | func (input *BeegoInput) IsUpload() bool { | 81 | func (input *BeegoInput) IsUpload() bool { |
| 78 | return input.req.MultipartForm != nil | 82 | return input.req.MultipartForm != nil |
| 79 | } | 83 | } | ... | ... |
-
Please register or sign in to post a comment