-
public void add_cookie (Cookie cookie)
Adds cookie to jar, 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 jar. The cookies in the list are a copy of the original, so you have to free them when you are done with them.
-
public void delete_cookie (Cookie cookie)
Deletes cookie from jar, emitting the 'changed' signal.
-
public CookieJarAcceptPolicy get_accept_policy ()
-
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 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 jar.
-
public void set_cookie (URI uri, string cookie)
Adds cookie to jar, 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 jar, exactly as though it had appeared in a Set-Cookie header
returned from a request to uri. first_party will be used to reject cookies coming from third party
resources in case such a security policy is set in the jar.