Creates a new #SoupCookie with the given attributes.
Tests if cookie should be sent to uri.
Copies cookie.
Checks if the cookie's domain and host match.
Tests if cookie1 and cookie2 are equal.
Gets cookie's domain.
Gets cookie's expiration time.
Gets cookie's HttpOnly attribute.
Gets cookie's name.
Gets cookie's path.
Returns the same-site policy for this cookie.
Gets cookie's secure attribute.
Gets cookie's value.
Sets cookie's domain to domain.
Sets cookie's expiration time to expires.
Sets cookie's HttpOnly attribute to http_only.
Sets cookie's max age to max_age.
Sets cookie's name to name.
Sets cookie's path to path.
When used in conjunction with soup.cookie_jar.CookieJar.getCookieListWithSameSiteInfo this sets the policy of when this cookie should be exposed.
Sets cookie's secure attribute to secure.
Sets cookie's value to value.
Serializes cookie in the format used by the Cookie header (ie, for returning a cookie from a classSession to a server).
Serializes cookie in the format used by the Set-Cookie header.
Parses header and returns a #SoupCookie.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
Implements HTTP cookies, as described by RFC 6265.
To have a class@Session handle cookies for your appliction automatically, use a class@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.