MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / get_info

Method get_info

include/curl_easy.h:1116–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

curl_easy_exceptionClass · 0.85

Tested by

no test coverage detected