Commit da915653 authored by astaxie's avatar astaxie

add iswebsocket method

parent 44f5c208
......@@ -74,6 +74,10 @@ func (input *BeegoInput) IsSecure() bool {
return input.Scheme() == "https"
}
func (input *BeegoInput) IsWebsocket() bool {
return input.Header("Upgrade") == "websocket"
}
func (input *BeegoInput) IsUpload() bool {
return input.req.MultipartForm != nil
}
......
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