mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
use new resolveRoutePath replace path.Join && add UseIf
This commit is contained in:
parent
bfc6b439e4
commit
53544644af
5 changed files with 198 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue