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

Method set_name

src/cookie.cpp:25–31  ·  view source on GitHub ↗

Implementation of set_name method.

Source from the content-addressed store, hash-verified

23
24// Implementation of set_name method.
25curl::cookie *curl::cookie::set_name(const string& _name) {
26 if (_name.empty()) {
27 throw curl_easy_exception("Cookie must have a name",__FUNCTION__);
28 }
29 this->name = _name;
30 return this;
31}
32
33// Implementation of set_name overloaded method.
34curl::cookie *curl::cookie::set_name(const char *_name) {

Callers 1

mainFunction · 0.80

Calls 1

curl_easy_exceptionClass · 0.85

Tested by

no test coverage detected