Add documentation for set_useragent().
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
968863301a
commit
7afc8d19a9
|
@ -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:
|
||||
|
|
|
@ -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()}
|
||||
|
|
Loading…
Reference in New Issue
Block a user