mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-11 00:56:57 +08:00
Merge c5c0d535b6873cbe80c21d8778681d4c3fb80b84 into d5b353c5d5a560322e6d96121c814115562501f7
This commit is contained in:
commit
72c0210e2a
@ -390,6 +390,12 @@ func (c *Context) Header(key, value string) {
|
||||
}
|
||||
}
|
||||
|
||||
// GetHeader is a shortcut for c.Request.Header.Get(key)
|
||||
// It gets the header in the request.
|
||||
func (c *Context) GetHeader(key string) string {
|
||||
return c.Request.Header.Get(key)
|
||||
}
|
||||
|
||||
func (c *Context) SetCookie(
|
||||
name string,
|
||||
value string,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user