da915653 by astaxie

add iswebsocket method

1 parent 44f5c208
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!