Documentation ¶
Overview ¶
Cookies Package helps reading and setting the cookie The cookie struct's instance is availaible to both goexpress.Request and goexpress.Response
Index ¶
- type Cookie
- func (c *Cookie) Add(cookie *http.Cookie) *Cookie
- func (c *Cookie) Del(name string) *Cookie
- func (c *Cookie) Finish()
- func (c *Cookie) Get(name string) string
- func (c *Cookie) GetAll() map[string]*http.Cookie
- func (c *Cookie) Init(response Response, request *http.Request) *Cookie
- func (c *Cookie) InitReadOnly(request *http.Request) *Cookie
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct {
// contains filtered or unexported fields
}
Cookie struct
func (*Cookie) Finish ¶
func (c *Cookie) Finish()
An internal function to set all the cookies before pushing response body
Click to show internal directories.
Click to hide internal directories.