download_bytes
Description:
[ Version ( since = "1.4.5" ) ]
public Bytes download_bytes (string url, ClientDownloadFlags flags, Cancellable? cancellable = null) throws Error
public Bytes download_bytes (string url, ClientDownloadFlags flags, Cancellable? cancellable = null) throws Error
Downloads data from a remote server.
The set_user_agent function should be called before this method is used.
Parameters:
| this |
A Client |
| url |
the remote URL |
| flags |
ClientDownloadFlags, e.g. fwupd_client_download_flag_none |
| cancellable |
the Cancellable, or null |
Returns:
|
downloaded data, or null for error |