CookieJar
Object Hierarchy:
Soup.CookieJar
Soup.CookieJar
Soup.CookieJar
GLib.Object
GLib.Object
GLib.Object->Soup.CookieJar
Soup.SessionFeature
Soup.SessionFeature
Soup.SessionFeature->Soup.CookieJar
Description:
[
CCode ( type_id =
"soup_cookie_jar_get_type ()" ) ]
public class CookieJar :
Object ,
SessionFeature
Content:
Properties:
Creation methods:
Methods:
public void add_cookie (owned Cookie cookie)
Adds cookie
to this ,
emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's
expire date is not in the past).
public void add_cookie_full (owned Cookie cookie, URI ? uri, URI ? first_party)
Adds cookie
to this ,
emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's
expire date is not in the past).
public void add_cookie_with_first_party (URI first_party, owned Cookie cookie)
Adds cookie
to this ,
emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's
expire date is not in the past).
public SList <Cookie > all_cookies ()
Constructs a SList with every cookie inside
the this .
public void delete_cookie (Cookie cookie)
Deletes cookie
from this
, emitting the 'changed' signal.
public CookieJarAcceptPolicy get_accept_policy ()
public SList <Cookie > get_cookie_list (URI uri, bool for_http)
Retrieves the list of cookies that would be sent with a request to
uri
as a SList of Cookie objects.
public SList <Cookie > get_cookie_list_with_same_site_info (URI uri, URI ? top_level, URI ? site_for_cookies, bool for_http, bool is_safe_method, bool is_top_level_navigation)
This is an extended version of
get_cookie_list that provides more information required to use
SameSite cookies.
public string ? get_cookies (URI uri, bool for_http)
Retrieves (in Cookie-header form) the list of cookies that would be
sent with a request to uri
.
public virtual bool is_persistent ()
Gets whether this stores cookies
persistenly.
public virtual void save ()
This function exists for backward compatibility, but does not do
anything any more; cookie jars are saved automatically when they are changed.
public void set_accept_policy (CookieJarAcceptPolicy policy)
Sets policy
as the cookie acceptance policy for
this .
public void set_cookie (URI uri, string cookie)
Adds cookie
to this ,
exactly as though it had appeared in a Set-Cookie header returned from a request to uri
.
public void set_cookie_with_first_party (URI uri, URI first_party, string cookie)
Adds cookie
to this ,
exactly as though it had appeared in a Set-Cookie header returned from a request to uri
.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Soup.SessionFeature