[ Version ( since = "2.42" ) ]
public async bool replace_cookies (List<Cookie> cookies, Cancellable? cancellable = null) throws Error
Asynchronously replace all cookies in this with the given list of cookies
.
When the operation is finished, callback
will be called. You can then call replace_cookies.end
to get the result of the operation.
this | |
cookies |
a List of Cookie to be added |
cancellable |
a Cancellable or null to ignore |
callback |
(closure user_data): a TaskReadyCallback to call when the request is satisfied |
user_data |
the data to pass to callback function |