[ Version ( since = "1.5.0" ) ]
public async Bytes download_bytes_async (string url, ClientDownloadFlags flags, Cancellable? cancellable) throws Error
Downloads data from a remote server.
The set_user_agent function should be called before this method is used.
You must have called connect_async on this before using this method.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with set_main_context.
this |
A Client |
url |
the remote URL |
flags |
ClientDownloadFlags, e.g. fwupd_client_download_flag_none |
cancellable |
the Cancellable, or null |
callback |
the function to run on completion |
callback_data |
the data to pass to |