Merge pull request #5 from infinite-iroha/dev

add GetProtocol
This commit is contained in:
WJQSERVER 2025-06-02 04:49:02 +08:00 committed by GitHub
commit 52cc857d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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