| 650 | private: |
| 651 | #ifdef LLAMA_USE_CURL |
| 652 | int download(const std::string & url, const std::string & output_file, const bool progress, |
| 653 | const std::vector<std::string> & headers = {}, std::string * response_str = nullptr) { |
| 654 | HttpClient http; |
| 655 | if (http.init(url, headers, output_file, progress, response_str)) { |
| 656 | return 1; |
| 657 | } |
| 658 | |
| 659 | return 0; |
| 660 | } |
| 661 | #else |
| 662 | int download(const std::string &, const std::string &, const bool, const std::vector<std::string> & = {}, |
| 663 | std::string * = nullptr) { |
no test coverage detected