dreamworkAPI
Ctrl K
GitHub
typeDocs / http / Cookie

http.Cookie

typesource

A cookie stored in http.CookieJar, see RFC 6265.

Fields

NameTypeDescription
namestringThe cookie name.
valuestringThe cookie value, as sent by the server.
domainstringThe lowercase domain the cookie belongs to, without a leading ".".
pathstringThe path the cookie is sent for, always starts with "/".
host_onlybooleantrue if the cookie is only sent to domain itself, false if subdomains get it too.
securebooleantrue if the cookie is only sent over https://.
http_onlybooleanThe HttpOnly attribute, kept for completeness, it has no effect here.
same_sitestring | nilThe lowercase SameSite attribute, kept for completeness, it has no effect here.
expiresinteger | nilThe Unix timestamp (seconds) the cookie expires at, nil for session cookies.
createdintegerThe creation order, earlier cookies are sent first when paths are equally long.
Generated from the dreamwork meta branch.