Improve documentation.
This commit is contained in:
parent
deed340f3d
commit
577c252b42
|
@ -83,6 +83,7 @@ public:
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Make a HTTP GET call.
|
* @brief Make a HTTP GET call.
|
||||||
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* @code
|
* @code
|
||||||
* auto answer{connection.get("/api/v1/instance")};
|
* auto answer{connection.get("/api/v1/instance")};
|
||||||
|
|
|
@ -74,17 +74,17 @@
|
||||||
* @section exceptions Exceptions
|
* @section exceptions Exceptions
|
||||||
*
|
*
|
||||||
* Any unrecoverable libcurl error will be thrown as a
|
* Any unrecoverable libcurl error will be thrown as a
|
||||||
* mastodonpp::CURLException. Network errors will **not** be thrown, but
|
* mastodonpp::CURLException. Network errors will not be thrown, but reported
|
||||||
* reported via the return value.
|
* via the return value.
|
||||||
*
|
*
|
||||||
* @section thread_safety Thread safety
|
* @section thread_safety Thread safety
|
||||||
*
|
*
|
||||||
* The first time you construct an @link mastodonpp::Instance Instance @endlink
|
* The first time you construct an @link mastodonpp::Instance Instance @endlink
|
||||||
* or @link mastodonpp::Connection Connection @endlink, [curl_global_init()]
|
* or @link mastodonpp::Connection Connection @endlink, [curl_global_init(3)]
|
||||||
* (https://curl.haxx.se/libcurl/c/curl_global_init.html) is called. When the
|
* (https://curl.haxx.se/libcurl/c/curl_global_init.html) is called. When the
|
||||||
* last @link mastodonpp::Instance Instance @endlink or @link
|
* last @link mastodonpp::Instance Instance @endlink or @link
|
||||||
* mastodonpp::Connection Connection @endlink is destroyed,
|
* mastodonpp::Connection Connection @endlink is destroyed,
|
||||||
* [curl_global_cleanup()]
|
* [curl_global_cleanup(3)]
|
||||||
* (https://curl.haxx.se/libcurl/c/curl_global_cleanup.html) is called. Both
|
* (https://curl.haxx.se/libcurl/c/curl_global_cleanup.html) is called. Both
|
||||||
* are not thread safe.
|
* are not thread safe.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user