add_cookie


Description:

[ Version ( since = "2.20" ) ]
public async bool add_cookie (Cookie cookie, Cancellable? cancellable = null) throws Error

Asynchronously add a Cookie to the underlying storage.

When the operation is finished, callback will be called. You can then call add_cookie.end to get the result of the operation.

Parameters:

this

a CookieManager

cookie

the Cookie to be added

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function