download_file


Description:

[ Version ( since = "1.5.2" ) ]
public bool download_file (string url, File file, 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

file

a File

flags

ClientDownloadFlags, e.g. fwupd_client_download_flag_none

cancellable

the Cancellable, or null

Returns:

true if the file was written, or null for error




2022 vala-language.org