mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
refactor request code
This commit is contained in:
parent
0d7369c77a
commit
1748ca7dd9
12 changed files with 222 additions and 194 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue