Class
SoupCookieJarDB
Description [src]
final class Soup.CookieJarDB : Soup.CookieJar
implements Gio.Initable, Soup.SessionFeature {
/* No available fields */
}
Database-based Cookie Jar.
SoupCookieJarDB is a SoupCookieJar that reads cookies from and writes
them to a sqlite database in the new Mozilla format.
(This is identical to SoupCookieJarSqlite in
libsoup-gnome; it has just been moved into libsoup proper, and
renamed to avoid conflicting.)
Since 3.8 this class implements GInitable to track failures
opening the database. See soup_cookie_jar_db_new_with_error().
Constructors
soup_cookie_jar_db_new_with_error
Creates a SoupCookieJarDB, returning NULL and setting error if the
database file cannot be opened.
unstable since: 3.8
Instance methods
soup_cookie_jar_db_get_max_size
Get the maximum size for the database file storage.
unstable since: 3.8
soup_cookie_jar_db_set_max_size
Set the maximum size for the database file storage.
unstable since: 3.8
Methods inherited from SoupCookieJar (13)
soup_cookie_jar_add_cookie
Adds cookie to jar.
soup_cookie_jar_add_cookie_full
Adds cookie to jar.
soup_cookie_jar_add_cookie_with_first_party
Adds cookie to jar.
soup_cookie_jar_all_cookies
Constructs a GList with every cookie inside the jar.
soup_cookie_jar_delete_cookie
Deletes cookie from jar.
soup_cookie_jar_get_accept_policy
Gets jar‘s SoupCookieJarAcceptPolicy.
soup_cookie_jar_get_cookie_list
Retrieves the list of cookies that would be sent with a request to uri
as a GList of SoupCookie objects.
soup_cookie_jar_get_cookie_list_with_same_site_info
This is an extended version of soup_cookie_jar_get_cookie_list() that
provides more information required to use SameSite cookies.
soup_cookie_jar_get_cookies
Retrieves (in Cookie-header form) the list of cookies that would
be sent with a request to uri.
soup_cookie_jar_is_persistent
Gets whether jar stores cookies persistenly.
soup_cookie_jar_set_accept_policy
Sets policy as the cookie acceptance policy for jar.
soup_cookie_jar_set_cookie
Adds cookie to jar, exactly as though it had appeared in a
Set-Cookie header returned from a request to uri.
soup_cookie_jar_set_cookie_with_first_party
Adds cookie to jar, exactly as though it had appeared in a
Set-Cookie header returned from a request to uri.
Methods inherited from GInitable (1)
g_initable_init
Initializes the object implementing the interface.
Properties
Properties inherited from SoupCookieJar (2)
Soup.CookieJar:accept-policy
The policy the jar should follow to accept or reject cookies.
Soup.CookieJar:read-only
Whether or not the cookie jar is read-only.
Signals
Signals inherited from SoupCookieJar (1)
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.