| 1114 | |
| 1115 | // Implementation of get_info method. |
| 1116 | template<CURLINFO Info> curl_easy_info<detail_info::Info_type<Info>> curl_easy::get_info() const { |
| 1117 | detail_info::Info_type<Info> val; |
| 1118 | const CURLcode code = curl_easy_getinfo(this->curl,Info,&val); |
| 1119 | if (code != CURLE_OK) { |
| 1120 | throw curl_easy_exception(code,__FUNCTION__); |
| 1121 | } |
| 1122 | curl_easy_info<detail_info::Info_type<Info>> easy_info(val); |
| 1123 | return easy_info; |
| 1124 | } |
| 1125 | |
| 1126 | // Implementation of get_curl method. |
| 1127 | inline CURL *curl_easy::get_curl() const { |
nothing calls this directly
no test coverage detected