From 7afc8d19a9a01963465189031f01c6068c99ec7f Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 14 Jan 2020 23:28:20 +0100 Subject: [PATCH] Add documentation for set_useragent(). --- include/curl_wrapper.hpp | 5 +++++ include/instance.hpp | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp index 890b36e..bd443ed 100644 --- a/include/curl_wrapper.hpp +++ b/include/curl_wrapper.hpp @@ -239,6 +239,11 @@ protected: */ void set_cainfo(string_view path); + /*! + * @brief Sets the User-Agent. + * + * @since 0.3.0 + */ void set_useragent(string_view useragent); private: diff --git a/include/instance.hpp b/include/instance.hpp index 8f17525..009c308 100644 --- a/include/instance.hpp +++ b/include/instance.hpp @@ -189,6 +189,14 @@ public: CURLWrapper::set_cainfo(path); } + /*! + * @brief Sets the User-Agent. + * + * Sets also the User-Agent for all Connection%s that are initialized with + * this Instance afterwards. + * + * @since 0.3.0 + */ void set_useragent(const string_view useragent) { _useragent = useragent; @@ -226,6 +234,11 @@ public: class ObtainToken : public CURLWrapper { public: + /*! + * @brief Constructor. + * + * @since 0.3.0 + */ explicit ObtainToken(Instance &instance) : _instance{instance} , _baseuri{instance.get_baseuri()}