CookieManager.replaceCookies
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.
When the operation is finished, callback will be called. You can then call [webkit.cookie_manager.CookieManager.replaceCookiesFinish] to get the result of the operation.
Parameters
cookies | a #GList of #SoupCookie to be added |
cancellable | a #GCancellable or null to ignore |
callback | (closure user_data): a #GAsyncReadyCallback to call when the request is satisfied |