package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: May 8, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cookie provides an abstraction of cookie in rocket
Forget would delete the cookie that name is provided name
func (*Cookie) Domain ¶
Domain set domain of cookie
Expires set expires of cookie
Generate is not prepare for you
MaxAge is set function for maxAge of Cookie
* maxAge=0 means no 'Max-Age' attribute specified
* maxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
* maxAge>0 means Max-Age attribute present and given in seconds
Source Files
¶
Click to show internal directories.
Click to hide internal directories.