2020-01-16

This commit is contained in:
tastytea 2020-01-16 19:18:23 +01:00
parent fad25bd5b0
commit dfab999c9c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
6 changed files with 89 additions and 88 deletions

View File

@ -199,7 +199,7 @@ $(function() {
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html_a193361ac6ffafb474bbc493273a028ce"><div class="ttname"><a href="structmastodonpp_1_1event__type.html#a193361ac6ffafb474bbc493273a028ce">mastodonpp::event_type::type</a></div><div class="ttdeci">string type</div><div class="ttdoc">The type of the event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:62</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_af27eb5d94f5a0e39a703988fdcc54173"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#af27eb5d94f5a0e39a703988fdcc54173">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP POST call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:164</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:66</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ac5fedffbd59686c26b1e44a7a96c216a"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ac5fedffbd59686c26b1e44a7a96c216a">mastodonpp::Connection::Connection</a></div><div class="ttdeci">Connection(Instance &amp;instance)</div><div class="ttdoc">Construct a new Connection object.</div><div class="ttdef"><b>Definition:</b> connection.hpp:85</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad05ff1b33460bfedf0b46f4e5e755399"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad05ff1b33460bfedf0b46f4e5e755399">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP PUT call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:216</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a60034eabe75bd3afade110a171c66d05"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a60034eabe75bd3afade110a171c66d05">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP GET call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:127</div></div>
@ -214,7 +214,7 @@ $(function() {
<div class="ttc" id="anamespacemastodonpp_html_ad228a850ba86374f95d9fa1fece3c33b"><div class="ttname"><a href="namespacemastodonpp.html#ad228a850ba86374f95d9fa1fece3c33b">mastodonpp::endpoint_variant</a></div><div class="ttdeci">variant&lt; API::endpoint_type, string_view &gt; endpoint_variant</div><div class="ttdoc">An endpoint. Either API::endpoint_type or std::string_view.</div><div class="ttdef"><b>Definition:</b> connection.hpp:43</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a095f752558410fab3dee6782e03a0fdb"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP DELETE call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:62</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html"><div class="ttname"><a href="structmastodonpp_1_1event__type.html">mastodonpp::event_type</a></div><div class="ttdoc">A stream event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:52</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:82</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:81</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a10f838c74d2ccc83f64f29e2aad2f157"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PATCH call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:45</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad7cebeeef7c285ff4666dc6850f20164"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP POST call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:41</div></div>

View File

@ -239,14 +239,14 @@ $(function() {
<div class="ttc" id="anamespacemastodonpp_html_a7d60fc71ad0fb1fbd467b37fe1f1f100"><div class="ttname"><a href="namespacemastodonpp.html#a7d60fc71ad0fb1fbd467b37fe1f1f100">mastodonpp::http_method</a></div><div class="ttdeci">http_method</div><div class="ttdoc">The HTTP method.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:40</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a736572303fbec7a307514e611e6a468c"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">mastodonpp::CURLWrapper::CURLWrapper</a></div><div class="ttdeci">CURLWrapper()</div><div class="ttdoc">Initializes curl and sets up connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a2b7aaf03245a0730eeb464802168aded"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded">mastodonpp::CURLWrapper::get_curl_easy_handle</a></div><div class="ttdeci">CURL * get_curl_easy_handle()</div><div class="ttdoc">Returns pointer to the CURL easy handle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:105</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:66</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_aed6d09b5c32d71276a851ddf321b5891"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#aed6d09b5c32d71276a851ddf321b5891">mastodonpp::CURLWrapper::unescape_url</a></div><div class="ttdeci">string unescape_url(const string_view url) const</div><div class="ttdoc">URL decodes the given string .</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:145</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.cpp:19</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_aeb3171d955832b8062dc02b4ac67d195"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#aeb3171d955832b8062dc02b4ac67d195">mastodonpp::CURLWrapper::buffer_mutex</a></div><div class="ttdeci">mutex buffer_mutex</div><div class="ttdoc">Mutex for get_buffer a.k.a. _curl_buffer_body.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:175</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a04b3919cfb38716c5a032337e442db95"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a04b3919cfb38716c5a032337e442db95">mastodonpp::CURLWrapper::get_buffer</a></div><div class="ttdeci">string &amp; get_buffer()</div><div class="ttdoc">Returns a reference to the buffer libcurl writes into.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:196</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:216</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:82</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:72</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:81</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:74</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:253</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a5f29b7f4d0b58f70bc96f362cdaa4d0a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">mastodonpp::CURLWrapper::operator=</a></div><div class="ttdeci">CURLWrapper &amp; operator=(const CURLWrapper &amp;other)=delete</div><div class="ttdoc">Copy assignment operator.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:263</div></div>

View File

@ -226,7 +226,7 @@ $(function() {
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:216</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a84b7e4ef6e05f7f7208b557c38b5ad1e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e">mastodonpp::Instance::get_post_formats</a></div><div class="ttdeci">vector&lt; string &gt; get_post_formats() noexcept</div><div class="ttdoc">Returns the allowed mime types for statuses.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><div class="ttdeci">uint64_t get_max_chars() noexcept</div><div class="ttdoc">Returns the maximum number of characters per post.</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:82</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:81</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a4aa276f156e3a770e5fd9cbf5c7c0cd5"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a4aa276f156e3a770e5fd9cbf5c7c0cd5">mastodonpp::Instance::set_proxy</a></div><div class="ttdeci">void set_proxy(const string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> instance.hpp:147</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:253</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:45</div></div>

View File

@ -591,7 +591,7 @@ Functions</h2></td></tr>
</div>
</div>
</div><!-- contents -->
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:66</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a4e42b93c60074920fb731ab6ba797935"><div class="ttname"><a href="namespacemastodonpp.html#a4e42b93c60074920fb731ab6ba797935">mastodonpp::unescape_html</a></div><div class="ttdeci">string unescape_html(string html)</div><div class="ttdoc">Replaces HTML entities with UTF-8 characters.</div><div class="ttdef"><b>Definition:</b> helpers.cpp:40</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>

View File

@ -79,7 +79,7 @@ $(function() {
<p>Return type for Requests.
<a href="structmastodonpp_1_1answer__type.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="types_8hpp_source.html">mastodonpp/types.hpp</a>&gt;</code></p>
<p><code>#include &lt;<a class="el" href="types_8hpp_source.html">types.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
@ -198,9 +198,9 @@ Friends</h2></td></tr>
<p>Returns the parameters needed for the next entries. </p>
<p>Parses the <code>Link</code> header.</p>
<dl class="section since"><dt>Since</dt><dd>0.3.0 </dd></dl>
<div class="fragment"><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div>
<div class="fragment"><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; {</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; }</div>
</div><!-- fragment -->
</div>
</div>
@ -292,9 +292,9 @@ Friends</h2></td></tr>
<p>Returns the parameters needed for the previous entries. </p>
<p>Parses the <code>Link</code> header.</p>
<dl class="section since"><dt>Since</dt><dd>0.3.0 </dd></dl>
<div class="fragment"><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; {</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div>
<div class="fragment"><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; {</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; }</div>
</div><!-- fragment -->
</div>
</div>
@ -434,10 +434,10 @@ Friends</h2></td></tr>
<li>src/types.cpp</li>
</ul>
</div><!-- contents -->
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_ab84b7094800ffe32d34b33085dcef9aa"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">mastodonpp::answer_type::headers</a></div><div class="ttdeci">string headers</div><div class="ttdoc">The headers of the response from the server.</div><div class="ttdef"><b>Definition:</b> types.hpp:113</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a7c5582c4500034c0ea36ab1694944139"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">mastodonpp::answer_type::curl_error_code</a></div><div class="ttdeci">uint8_t curl_error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> types.hpp:92</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a9da206eb4954ff15402083379909cc38"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">mastodonpp::answer_type::body</a></div><div class="ttdeci">string body</div><div class="ttdoc">The response from the server, usually JSON.</div><div class="ttdef"><b>Definition:</b> types.hpp:120</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a0716af5033e02551937187a149c3f52d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">mastodonpp::answer_type::http_status</a></div><div class="ttdeci">uint16_t http_status</div><div class="ttdoc">HTTP status code.</div><div class="ttdef"><b>Definition:</b> types.hpp:106</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_ab84b7094800ffe32d34b33085dcef9aa"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">mastodonpp::answer_type::headers</a></div><div class="ttdeci">string headers</div><div class="ttdoc">The headers of the response from the server.</div><div class="ttdef"><b>Definition:</b> types.hpp:112</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a7c5582c4500034c0ea36ab1694944139"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">mastodonpp::answer_type::curl_error_code</a></div><div class="ttdeci">uint8_t curl_error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> types.hpp:91</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a9da206eb4954ff15402083379909cc38"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">mastodonpp::answer_type::body</a></div><div class="ttdeci">string body</div><div class="ttdoc">The response from the server, usually JSON.</div><div class="ttdef"><b>Definition:</b> types.hpp:119</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a0716af5033e02551937187a149c3f52d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">mastodonpp::answer_type::http_status</a></div><div class="ttdeci">uint16_t http_status</div><div class="ttdoc">HTTP status code.</div><div class="ttdef"><b>Definition:</b> types.hpp:105</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">

View File

@ -100,80 +100,81 @@ $(function() {
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;variant&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemastodonpp.html">mastodonpp</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">using</span> std::uint8_t;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">using</span> std::uint16_t;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">using</span> std::map;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">using</span> std::ostream;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">using</span> std::string;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">using</span> std::string_view;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">using</span> std::pair;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">using</span> std::variant;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">using</span> std::vector;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">using</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> =</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6"> 64</a></span>&#160; map&lt;string_view, variant&lt;string_view, vector&lt;string_view&gt;&gt;&gt;;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword">using</span> <a class="code" href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">parameterpair</a> =</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049"> 72</a></span>&#160; pair&lt;string_view, variant&lt;string_view, vector&lt;string_view&gt;&gt;&gt;;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html"> 82</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;{</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139"> 92</a></span>&#160; uint8_t <a class="code" href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">curl_error_code</a>{0};</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726"> 99</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726">error_message</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d"> 106</a></span>&#160; uint16_t <a class="code" href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">http_status</a>{0};</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa"> 113</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">headers</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38"> 120</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">body</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">explicit</span> <span class="keyword">operator</span> string_view() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">friend</span> ostream &amp;<a class="code" href="structmastodonpp_1_1answer__type.html#a0154563855aee896209319101c217106">operator &lt;&lt;</a>(ostream &amp;out, <span class="keyword">const</span> <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> &amp;answer);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; string_view <a class="code" href="structmastodonpp_1_1answer__type.html#a65f4ba85d95c15ebc07377a2b74959da">get_header</a>(string_view field) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d"> 164</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> <a class="code" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">next</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9"> 178</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> <a class="code" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">prev</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> parse_pagination(<span class="keywordtype">bool</span> <a class="code" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">next</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;};</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="preprocessor">#endif // MASTODONPP_TYPES_HPP</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemastodonpp.html">mastodonpp</a></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">using</span> std::uint8_t;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">using</span> std::uint16_t;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">using</span> std::map;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">using</span> std::ostream;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">using</span> std::string;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">using</span> std::string_view;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">using</span> std::pair;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">using</span> std::variant;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">using</span> std::vector;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">using</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> =</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6"> 66</a></span>&#160; map&lt;string_view, variant&lt;string_view, vector&lt;string_view&gt;&gt;&gt;;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keyword">using</span> <a class="code" href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">parameterpair</a> =</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049"> 74</a></span>&#160; pair&lt;string_view, variant&lt;string_view, vector&lt;string_view&gt;&gt;&gt;;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html"> 81</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;{</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139"> 91</a></span>&#160; uint8_t <a class="code" href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">curl_error_code</a>{0};</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726"> 98</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726">error_message</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d"> 105</a></span>&#160; uint16_t <a class="code" href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">http_status</a>{0};</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa"> 112</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">headers</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38"> 119</a></span>&#160; <span class="keywordtype">string</span> <a class="code" href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">body</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">explicit</span> <span class="keyword">operator</span> string_view() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">friend</span> ostream &amp;<a class="code" href="structmastodonpp_1_1answer__type.html#a0154563855aee896209319101c217106">operator &lt;&lt;</a>(ostream &amp;out, <span class="keyword">const</span> <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> &amp;answer);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; string_view <a class="code" href="structmastodonpp_1_1answer__type.html#a65f4ba85d95c15ebc07377a2b74959da">get_header</a>(string_view field) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d"> 163</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> <a class="code" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">next</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; }</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9"> 177</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> <a class="code" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">prev</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">return</span> parse_pagination(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; }</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; [[nodiscard]]</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> parse_pagination(<span class="keywordtype">bool</span> <a class="code" href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">next</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;};</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="preprocessor">#endif // MASTODONPP_TYPES_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a0154563855aee896209319101c217106"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a0154563855aee896209319101c217106">mastodonpp::answer_type::operator&lt;&lt;</a></div><div class="ttdeci">friend ostream &amp; operator&lt;&lt;(ostream &amp;out, const answer_type &amp;answer)</div><div class="ttdoc">Returns body as std::ostream.</div><div class="ttdef"><b>Definition:</b> types.cpp:39</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a54baac6518a4178062d6963661ba50e9"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">mastodonpp::answer_type::prev</a></div><div class="ttdeci">parametermap prev() const</div><div class="ttdoc">Returns the parameters needed for the previous entries.</div><div class="ttdef"><b>Definition:</b> types.hpp:178</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_ab84b7094800ffe32d34b33085dcef9aa"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">mastodonpp::answer_type::headers</a></div><div class="ttdeci">string headers</div><div class="ttdoc">The headers of the response from the server.</div><div class="ttdef"><b>Definition:</b> types.hpp:113</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a7c5582c4500034c0ea36ab1694944139"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">mastodonpp::answer_type::curl_error_code</a></div><div class="ttdeci">uint8_t curl_error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> types.hpp:92</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a54baac6518a4178062d6963661ba50e9"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">mastodonpp::answer_type::prev</a></div><div class="ttdeci">parametermap prev() const</div><div class="ttdoc">Returns the parameters needed for the previous entries.</div><div class="ttdef"><b>Definition:</b> types.hpp:177</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_ab84b7094800ffe32d34b33085dcef9aa"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#ab84b7094800ffe32d34b33085dcef9aa">mastodonpp::answer_type::headers</a></div><div class="ttdeci">string headers</div><div class="ttdoc">The headers of the response from the server.</div><div class="ttdef"><b>Definition:</b> types.hpp:112</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:66</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a7c5582c4500034c0ea36ab1694944139"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139">mastodonpp::answer_type::curl_error_code</a></div><div class="ttdeci">uint8_t curl_error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> types.hpp:91</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.cpp:19</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a9da206eb4954ff15402083379909cc38"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">mastodonpp::answer_type::body</a></div><div class="ttdeci">string body</div><div class="ttdoc">The response from the server, usually JSON.</div><div class="ttdef"><b>Definition:</b> types.hpp:120</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_adda74145891e444f223ccdfe623af726"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726">mastodonpp::answer_type::error_message</a></div><div class="ttdeci">string error_message</div><div class="ttdoc">The error message.</div><div class="ttdef"><b>Definition:</b> types.hpp:99</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:82</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a9da206eb4954ff15402083379909cc38"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a9da206eb4954ff15402083379909cc38">mastodonpp::answer_type::body</a></div><div class="ttdeci">string body</div><div class="ttdoc">The response from the server, usually JSON.</div><div class="ttdef"><b>Definition:</b> types.hpp:119</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_adda74145891e444f223ccdfe623af726"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#adda74145891e444f223ccdfe623af726">mastodonpp::answer_type::error_message</a></div><div class="ttdeci">string error_message</div><div class="ttdoc">The error message.</div><div class="ttdef"><b>Definition:</b> types.hpp:98</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:81</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a65f4ba85d95c15ebc07377a2b74959da"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a65f4ba85d95c15ebc07377a2b74959da">mastodonpp::answer_type::get_header</a></div><div class="ttdeci">string_view get_header(string_view field) const</div><div class="ttdoc">Returns the value of a header field.</div><div class="ttdef"><b>Definition:</b> types.cpp:45</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:72</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a0716af5033e02551937187a149c3f52d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">mastodonpp::answer_type::http_status</a></div><div class="ttdeci">uint16_t http_status</div><div class="ttdoc">HTTP status code.</div><div class="ttdef"><b>Definition:</b> types.hpp:106</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a12606bd15901a56b80e3a68b6078294d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">mastodonpp::answer_type::next</a></div><div class="ttdeci">parametermap next() const</div><div class="ttdoc">Returns the parameters needed for the next entries.</div><div class="ttdef"><b>Definition:</b> types.hpp:164</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:74</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a0716af5033e02551937187a149c3f52d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a0716af5033e02551937187a149c3f52d">mastodonpp::answer_type::http_status</a></div><div class="ttdeci">uint16_t http_status</div><div class="ttdoc">HTTP status code.</div><div class="ttdef"><b>Definition:</b> types.hpp:105</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html_a12606bd15901a56b80e3a68b6078294d"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html#a12606bd15901a56b80e3a68b6078294d">mastodonpp::answer_type::next</a></div><div class="ttdeci">parametermap next() const</div><div class="ttdoc">Returns the parameters needed for the next entries.</div><div class="ttdef"><b>Definition:</b> types.hpp:163</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">