#include <http-downloader.h>
Public Member Functions | |
bool | download_to_bytes_vector (const std::string &url, std::vector< uint8_t > &output, user_callback_func_type user_callback_func=user_callback_func_type()) |
bool | download_to_file (const std::string &url, const std::string &file_name, user_callback_func_type user_callback_func=user_callback_func_type()) |
bool | download_to_stream (const std::string &url, std::stringstream &output, user_callback_func_type user_callback_func=user_callback_func_type()) |
http_downloader () | |
~http_downloader () | |
Private Member Functions | |
void | register_progress_call_back (progress_data &progress_record, user_callback_func_type user_callback_func) |
void | set_common_options (const std::string &url) |
Private Attributes | |
void * | _curl |
Definition at line 22 of file http-downloader.h.
rs2::http::http_downloader::http_downloader | ( | ) |
Definition at line 27 of file http-downloader.cpp.
rs2::http::http_downloader::~http_downloader | ( | ) |
Definition at line 28 of file http-downloader.cpp.
bool rs2::http::http_downloader::download_to_bytes_vector | ( | const std::string & | url, |
std::vector< uint8_t > & | output, | ||
user_callback_func_type | user_callback_func = user_callback_func_type() |
||
) |
Definition at line 31 of file http-downloader.cpp.
bool rs2::http::http_downloader::download_to_file | ( | const std::string & | url, |
const std::string & | file_name, | ||
user_callback_func_type | user_callback_func = user_callback_func_type() |
||
) |
Definition at line 30 of file http-downloader.cpp.
bool rs2::http::http_downloader::download_to_stream | ( | const std::string & | url, |
std::stringstream & | output, | ||
user_callback_func_type | user_callback_func = user_callback_func_type() |
||
) |
Definition at line 29 of file http-downloader.cpp.
|
private |
|
private |
|
private |
Definition at line 39 of file http-downloader.h.