webkit.cookie_manager

Module for [CookieManager] class

Types 3

Defines how to handle cookies in a #WebKitWebContext.

The WebKitCookieManager defines how to set up and handle cookies. You can get it from a #WebKitWebsiteDataManager with webkit_website_data_manager_get_cookie_manager(), and use it to set where to store cookies with [webkit.cookie_manager.CookieManager.setPersistentStorage], or to set the acceptance policy, with [webkit.cookie_manager.CookieManager.getAcceptPolicy].

Methods
GType _gType() @property
CookieManager self()Returns `this`, for use in `with` statements.
CookieManagerGidBuilder builder()Get builder for [webkit.cookie_manager.CookieManager] Returns: New builder object
void addCookie(soup.cookie.Cookie cookie, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously add a #SoupCookie to the underlying storage.
bool addCookieFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.addCookie].
void deleteCookie(soup.cookie.Cookie cookie, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously delete a #SoupCookie from the current session.
bool deleteCookieFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.deleteCookie].
void getAcceptPolicy(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously get the cookie acceptance policy of cookie_manager.
webkit.types.CookieAcceptPolicy getAcceptPolicyFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.getAcceptPolicy].
void getAllCookies(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously get a list of #SoupCookie from cookie_manager.
soup.cookie.Cookie[] getAllCookiesFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.getAllCookies].
void getCookies(string uri, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously get a list of #SoupCookie from cookie_manager.
soup.cookie.Cookie[] getCookiesFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.getCookies].
void replaceCookies(soup.cookie.Cookie[] cookies, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously replace all cookies in cookie_manager with the given list of cookies.
bool replaceCookiesFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.cookie_manager.CookieManager.replaceCookies].
void setAcceptPolicy(webkit.types.CookieAcceptPolicy policy)Set the cookie acceptance policy of cookie_manager as policy.
void setPersistentStorage(string filename, webkit.types.CookiePersistentStorage storage)Set non-session cookies.
gulong connectChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.cookie_manager.CookieManager))) && Parameters!T.length < 2)Connect to `Changed` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.cookie_manager.CookieManager]