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

Method add

src/curl_form.cpp:54–64  ·  view source on GitHub ↗

Implementation of add method.

Source from the content-addressed store, hash-verified

52
53// Implementation of add method.
54void curl_form::add(const curl_pair<CURLformoption,string> &form_name,
55 const curl_pair<CURLformoption,string> &form_content) {
56
57 if (curl_formadd(&this->form_post,&this->last_ptr,
58 form_name.first(),form_name.second(),
59 form_content.first(),form_content.second(),
60 CURLFORM_END) != 0) {
61
62 throw curl_exception("Error while adding the form",__FUNCTION__);
63 }
64}
65
66// Implementation of overloaded add method.
67void curl_form::add(const curl_pair<CURLformoption,string> &form_name,

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 4

is_nullMethod · 0.95
curl_exceptionClass · 0.85
firstMethod · 0.45
secondMethod · 0.45

Tested by

no test coverage detected