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

Method add

src/curl_header.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59 // Implementation of add overloaded method.
60 void curl_header::add(const string &header)
61 {
62 this->headers = curl_slist_append(this->headers, header.c_str());
63 if (this->headers == nullptr)
64 {
65 throw curl_exception("Null pointer exception", __FUNCTION__);
66 }
67 ++this->size;
68 }
69}

Callers 2

curl_headerMethod · 0.95
curl_header.cppFile · 0.45

Calls 1

curl_exceptionClass · 0.85

Tested by

no test coverage detected