This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ type BrowserContext interface {
41
41
//
42
42
// https://datatracker.ietf.org/doc/html/rfc6265.
43
43
type Cookie struct {
44
- Name string `json:"name"` // Cookie name.
45
- Value string `json:"value"` // Cookie value.
46
- Domain string `json:"domain"` // Cookie domain.
47
- Path string `json:"path"` // Cookie path.
44
+ Name string `js:"name" json:"name"` // Cookie name.
45
+ Value string `js:"value" json:"value"` // Cookie value.
46
+ Domain string `js:"domain" json:"domain"` // Cookie domain.
47
+ Path string `js:"path" json:"path"` // Cookie path.
48
48
HTTPOnly bool `js:"httpOnly" json:"httpOnly"` // True if cookie is http-only.
49
- Secure bool `json:"secure"` // True if cookie is secure.
49
+ Secure bool `js:"secure" json:"secure"` // True if cookie is secure.
50
50
SameSite CookieSameSite `js:"sameSite" json:"sameSite"` // Cookie SameSite type.
51
51
URL string `js:"url" json:"url,omitempty"` // Cookie URL.
52
52
// Cookie expiration date as the number of seconds since the UNIX epoch.
53
- Expires int64 `json:"expires"`
53
+ Expires int64 `js:"expires" json:"expires"`
54
54
}
55
55
56
56
// CookieSameSite represents the cookie's 'SameSite' status.
You can’t perform that action at this time.
0 commit comments