use new resolveRoutePath replace path.Join && add UseIf

This commit is contained in:
wjqserver 2025-06-17 14:20:14 +08:00
parent bfc6b439e4
commit 53544644af
5 changed files with 198 additions and 4 deletions

View file

@ -570,6 +570,11 @@ func (c *Context) SetHeaders(headers map[string][]string) {
}
}
// 获取所有resp Headers
func (c *Context) GetAllRespHeader() http.Header {
return c.Writer.Header()
}
// GetAllReqHeader 获取所有请求头部
func (c *Context) GetAllReqHeader() http.Header {
return c.Request.Header