Cookie returns the named cookie provided in the request.
(name string)
| 440 | |
| 441 | // Cookie returns the named cookie provided in the request. |
| 442 | func (c *Context) Cookie(name string) (*http.Cookie, error) { |
| 443 | return c.request.Cookie(name) |
| 444 | } |
| 445 | |
| 446 | // SetCookie adds a `Set-Cookie` header in HTTP response. |
| 447 | func (c *Context) SetCookie(cookie *http.Cookie) { |
no outgoing calls