<p>Any unrecoverable libcurl error will be thrown as a <aclass="el"href="classmastodonpp_1_1CURLException.html"title="Exception for libcurl errors.">mastodonpp::CURLException</a>. Network errors will <b>not</b> be thrown, but reported via the return value.</p>
<h1><aclass="anchor"id="thread_safety"></a>
Thread safety</h1>
<p>The first time you construct an <aclass="el"href="classmastodonpp_1_1Instance.html">Instance </a> or <aclass="el"href="classmastodonpp_1_1Connection.html">Connection </a>, <ahref="https://curl.haxx.se/libcurl/c/curl_global_init.html">curl_global_init()</a> is called. When the last <aclass="el"href="classmastodonpp_1_1Instance.html">Instance </a> or <aclass="el"href="classmastodonpp_1_1Connection.html">Connection </a> is destroyed, <ahref="https://curl.haxx.se/libcurl/c/curl_global_cleanup.html">curl_global_cleanup()</a> is called. Both are not thread safe. </p>
<divclass="ttc"id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><divclass="ttname"><ahref="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><divclass="ttdeci">answer_type get(const endpoint_variant &endpoint, const parametermap &parameters)</div><divclass="ttdoc">Make a HTTP GET call with parameters.</div><divclass="ttdef"><b>Definition:</b> connection.cpp:29</div></div>
<divclass="ttc"id="anamespacemastodonpp_html"><divclass="ttname"><ahref="namespacemastodonpp.html">mastodonpp</a></div><divclass="ttdoc">C++ wrapper for the Mastodon API.</div><divclass="ttdef"><b>Definition:</b> answer.cpp:19</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Instance_html_a2f07b2e79fc7f128f26c88c2d954ecab"><divclass="ttname"><ahref="classmastodonpp_1_1Instance.html#a2f07b2e79fc7f128f26c88c2d954ecab">mastodonpp::Instance::get_max_chars</a></div><divclass="ttdeci">uint64_t get_max_chars()</div><divclass="ttdoc">Returns the maximum number of characters per post.</div><divclass="ttdef"><b>Definition:</b> instance.cpp:33</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Instance_html"><divclass="ttname"><ahref="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><divclass="ttdoc">Holds the access data of an instance.</div><divclass="ttdef"><b>Definition:</b> instance.hpp:40</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Connection_html"><divclass="ttname"><ahref="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><divclass="ttdoc">Represents a connection to an instance. Used for requests.</div><divclass="ttdef"><b>Definition:</b> connection.hpp:45</div></div>