Merge c5c0d535b6873cbe80c21d8778681d4c3fb80b84 into d5b353c5d5a560322e6d96121c814115562501f7

This commit is contained in:
Yi-Hsien Chen 2017-05-07 21:28:16 +00:00 committed by GitHub
commit 72c0210e2a

View File

@ -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,