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

Method curl_global

src/curl_global.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using curl::curl_global;
4
5curl_global::curl_global() {
6 const CURLcode code = curl_global_init(CURL_GLOBAL_ALL);
7 if (code != CURLE_OK) {
8 throw curl_easy_exception(code, __FUNCTION__);
9 }
10}
11
12curl_global::curl_global(const long flag) {
13 const CURLcode code = curl_global_init(flag);

Callers

nothing calls this directly

Calls 1

curl_easy_exceptionClass · 0.85

Tested by

no test coverage detected