mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 19:30:51 +00:00
add iswebsocket method
This commit is contained in:
parent
44f5c208b6
commit
da91565354
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user