Documentation
¶
Overview ¶
Package cookies provides tools for easy and quick work with http.Cookie.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v1.0.8
type Config struct {
Path string // optional
Domain string // optional
Expires time.Duration // optional
// 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
MaxAge int
Secure bool
HTTPOnly bool
// SameSiteDefaultMode SameSite = iota + 1 (1)
// SameSiteLaxMode (2)
// SameSiteStrictMode (3)
// SameSiteNoneMode (4)
SameSite http.SameSite
}
type NotFoundError ¶ added in v1.0.8
func (NotFoundError) Error ¶ added in v1.0.8
func (e NotFoundError) Error() string
func (NotFoundError) Unwrap ¶ added in v1.2.11
func (e NotFoundError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.