Documentation
¶
Overview ¶
Commands for interacting with the browser's cookie storage backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { friendscript.Module // contains filtered or unexported fields }
func (*Commands) Delete ¶ added in v0.9.31
func (self *Commands) Delete(name string, args *DeleteArgs) error
Deletes a cookie by name, and optionally matching additional criteria.
type Cookie ¶ added in v0.9.31
type Cookie struct { // The name of the cookie. Name string `json:"name"` // The cookie's value. Value string `json:"value"` // The applicable domain for the cookie. Domain string `json:"domain"` // The cookie's path. Path string `json:"path"` // The size of the cookie. Size int `json:"size"` // The cookie's expiration date. Expires *time.Time `json:"expires"` // The cookie is flagged as being inaccessible to client-side scripts. HttpOnly bool `json:"http_only"` // The cookie is flagged as "secure" Secure bool `json:"secure"` // This is a session cookie. Session bool `json:"session"` // The same site value of the cookie ("Strict" or "Lax") SameSite string `json:"same_site"` // The URL the cookie should refer to (when setting) URL string `json:"url,omitempty"` }
type DeleteArgs ¶ added in v0.9.31
type DeleteArgs struct { // Deletes all cookies with the given name where domain and path match the given URL. URL string `json:"url"` // If specified, deletes only cookies with this exact domain. Domain string `json:"domain"` // If specified, deletes only cookies with this exact path. Path string `json:"path"` }
Click to show internal directories.
Click to hide internal directories.