http.Cookie
A cookie stored in http.CookieJar, see RFC 6265.
Fields
| Name | Type | Description |
|---|---|---|
name | string | The cookie name. |
value | string | The cookie value, as sent by the server. |
domain | string | The lowercase domain the cookie belongs to, without a leading ".". |
path | string | The path the cookie is sent for, always starts with "/". |
host_only | boolean | true if the cookie is only sent to domain itself, false if subdomains get it too. |
secure | boolean | true if the cookie is only sent over https://. |
http_only | boolean | The HttpOnly attribute, kept for completeness, it has no effect here. |
same_site | string | nil | The lowercase SameSite attribute, kept for completeness, it has no effect here. |
expires | integer | nil | The Unix timestamp (seconds) the cookie expires at, nil for session cookies. |
created | integer | The creation order, earlier cookies are sent first when paths are equally long. |