add GetProtocol

This commit is contained in:
wjqserver 2025-06-02 02:10:25 +08:00
parent dd4afc276b
commit 6eac3b2046

View file

@ -473,3 +473,8 @@ func (c *Context) ErrorUseHandle(code int) {
c.Abort() c.Abort()
} }
} }
// GetProtocol 获取当前连接版本
func (c *Context) GetProtocol() string {
return c.Request.Proto
}