[ 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 [method@Client.set_user_agent] function should be called before this method is used.
You must have called [method@Client.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 [ method@Client.set_main_context].
| this |
a Client |
| url |
the remote URL |
| flags |
download flags, e.g. fwupd_client_download_flag_none |
| cancellable |
optional Cancellable |
| callback |
the function to run on completion |
| callback_data |
the data to pass to |