soup.cookie
Module for [Cookie] class
Types 1
Implements HTTP cookies, as described by RFC 6265.
To have a soup.session.Session handle cookies for your appliction automatically, use a soup.cookie_jar.CookieJar.
@name and @value will be set for all cookies. If the cookie is generated from a string that appears to have no name, then @name will be the empty string.
@domain and @path give the host or domain, and path within that host/domain, to restrict this cookie to. If @domain starts with ".", that indicates a domain (which matches the string after the ".", or any hostname that has @domain as a suffix). Otherwise, it is a hostname and must match exactly.
@expires will be non-null if the cookie uses either the original "expires" attribute, or the newer "max-age" attribute. If @expires is null, it indicates that neither "expires" nor "max-age" was specified, and the cookie expires at the end of the session.
If @http_only is set, the cookie should not be exposed to untrusted code (eg, javascript), so as to minimize the danger posed by cross-site scripting attacks.
glib.date_time.DateTime getExpires() nothrowGets cookie's expiration time. Returns: cookie's expiration time, which is owned by cookie and should not be modified or freed.soup.types.SameSitePolicy getSameSitePolicy() nothrowReturns the same-site policy for this cookie. Returns: a #SoupSameSitePolicyvoid setSameSitePolicy(soup.types.SameSitePolicy policy) nothrowWhen used in conjunction with [soup.cookie_jar.CookieJar.getCookieListWithSameSiteInfo] this sets the policy of when this cookie should be exposed.string toCookieHeader() nothrowSerializes cookie in the format used by the Cookie header (ie, for returning a cookie from a [soup.session.Session] to a server). Returns: the headersoup.cookie.Cookie parse(string header, glib.uri.Uri origin = null) static nothrowParses header and returns a #SoupCookie.