| 194 | } |
| 195 | |
| 196 | void HTTPClient::setSeekFunction(HTTPUploadCallback *callbackObj) { |
| 197 | curl_easy_setopt(http_session_, CURLOPT_SEEKDATA, static_cast<void*>(callbackObj)); |
| 198 | curl_easy_setopt(http_session_, CURLOPT_SEEKFUNCTION, &utils::HTTPRequestResponse::seek_callback); |
| 199 | } |
| 200 | |
| 201 | struct curl_slist *HTTPClient::build_header_list(std::string regex, const std::map<std::string, std::string> &attributes) { |
| 202 | if (http_session_) { |