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

Method curl_easy

include/curl_easy.h:1073–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071
1072 // Implementation of default constructor.
1073 template<class T> curl_easy::curl_easy(curl_ios<T> &writer) : curl_interface() {
1074 this->curl = curl_easy_init();
1075 if (this->curl == nullptr) {
1076 throw curl_easy_exception("Null pointer intercepted",__FUNCTION__);
1077 }
1078 this->add(curl_pair<CURLoption,curlcpp_callback_type>(CURLOPT_WRITEFUNCTION,writer.get_function()));
1079 this->add(curl_pair<CURLoption,void *>(CURLOPT_WRITEDATA, static_cast<void*>(writer.get_stream())));
1080 }
1081
1082 // Implementation of overridden constructor.
1083 template<class T> curl_easy::curl_easy(const long flag, curl_ios<T> &writer) : curl_interface(flag) {

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
curl_easy_exceptionClass · 0.85
get_functionMethod · 0.45
get_streamMethod · 0.45

Tested by

no test coverage detected