refactor request code

This commit is contained in:
ading2210 2024-03-12 17:12:02 -04:00
parent 0d7369c77a
commit 1748ca7dd9
12 changed files with 222 additions and 194 deletions

View file

@ -38,4 +38,10 @@ char* get_version() {
const char* get_error_str(CURLcode error_code) {
return curl_easy_strerror(error_code);
}
struct RequestInfo *get_handle_info(CURL* http_handle) {
struct RequestInfo *request_info;
curl_easy_getinfo(http_handle, CURLINFO_PRIVATE, &request_info);
return request_info;
}