Documentation
¶
Rendered for js/wasm
Index ¶
- Constants
- Variables
- func SetDOMCookie(name, value string)
- type Cookie
- type CookieJar
- func (cj *CookieJar) All() []Cookie
- func (cj *CookieJar) DelCookie(name string) error
- func (cj *CookieJar) DelCookieIndex(index int) error
- func (cj *CookieJar) Get(name string) (Cookie, error)
- func (cj *CookieJar) SetCookie(cookie Cookie) error
- func (cj *CookieJar) SetHTTPCookie(cookie *http.Cookie) error
- func (cj *CookieJar) SetHTTPCookies(cookies []*http.Cookie) error
- func (cj *CookieJar) Stop()
- type SameSite
Constants ¶
View Source
const (
MaxAgeNotSet = 0
)
Variables ¶
View Source
var GlobalJar = NewCookieJar()
Functions ¶
func SetDOMCookie ¶
func SetDOMCookie(name, value string)
Types ¶
type Cookie ¶
type Cookie struct {
Name string
Value string
Path string
Domain string
Expires time.Time
// 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
SameSite SameSite
Raw string
}
func GetDOMCookie ¶
type CookieJar ¶
type CookieJar struct {
// contains filtered or unexported fields
}
func NewCookieJar ¶
func NewCookieJar() *CookieJar
func (*CookieJar) DelCookieIndex ¶
func (*CookieJar) SetHTTPCookies ¶
Click to show internal directories.
Click to hide internal directories.