| 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 | } |
no test coverage detected