Adds the ability to set the trustAllHosts and options settings for the download file function.