CookieManager.addCookie

Asynchronously add a #SoupCookie to the underlying storage.

When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_add_cookie_finish() to get the result of the operation.

class CookieManager
void
addCookie
(,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

the #SoupCookie to be added

cancellable Cancellable

a #GCancellable or %NULL to ignore

callback GAsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta

Since

2.20