From 0a8cc69059e5b16c6f3dd8469ba2e52bc2ee9d85 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 15 Jan 2020 00:18:26 +0100 Subject: [PATCH] 2020-01-15 --- ...lassmastodonpp_1_1CURLWrapper-members.html | 2 +- docs/classmastodonpp_1_1CURLWrapper.html | 53 ++++++++++--------- ...classmastodonpp_1_1Connection-members.html | 2 +- docs/classmastodonpp_1_1Connection.html | 6 +-- docs/classmastodonpp_1_1Instance-members.html | 2 +- docs/classmastodonpp_1_1Instance.html | 8 +-- ...pp_1_1Instance_1_1ObtainToken-members.html | 2 +- ...mastodonpp_1_1Instance_1_1ObtainToken.html | 10 ++-- docs/curl__wrapper_8hpp_source.html | 6 +-- docs/functions.html | 2 +- docs/functions_func.html | 2 +- docs/instance_8hpp_source.html | 2 +- docs/log_8hpp_source.html | 29 +++++----- docs/search/all_c.js | 2 +- docs/search/functions_a.js | 2 +- docs/types_8hpp_source.html | 13 ++--- 16 files changed, 74 insertions(+), 69 deletions(-) diff --git a/docs/classmastodonpp_1_1CURLWrapper-members.html b/docs/classmastodonpp_1_1CURLWrapper-members.html index ff83530..92cc468 100644 --- a/docs/classmastodonpp_1_1CURLWrapper-members.html +++ b/docs/classmastodonpp_1_1CURLWrapper-members.html @@ -84,7 +84,7 @@ $(function() { make_request(const http_method &method, string uri, const parametermap &parameters)mastodonpp::CURLWrapperprotected operator=(const CURLWrapper &other)=deletemastodonpp::CURLWrapper operator=(CURLWrapper &&other) noexcept=deletemastodonpp::CURLWrapper - set_access_token(const string_view access_token)mastodonpp::CURLWrapperprotected + set_access_token(string_view access_token)mastodonpp::CURLWrapperprotected set_cainfo(string_view path)mastodonpp::CURLWrapperprotected set_proxy(string_view proxy)mastodonpp::CURLWrapperprotected set_useragent(string_view useragent)mastodonpp::CURLWrapperprotected diff --git a/docs/classmastodonpp_1_1CURLWrapper.html b/docs/classmastodonpp_1_1CURLWrapper.html index 6b8b9b5..ddbc0aa 100644 --- a/docs/classmastodonpp_1_1CURLWrapper.html +++ b/docs/classmastodonpp_1_1CURLWrapper.html @@ -139,9 +139,9 @@ Protected Member Functions void set_proxy (string_view proxy)  Set the proxy to use. More...
  -void set_access_token (const string_view access_token) - Set OAuth 2.0 Bearer Access Token. More...
-  +void set_access_token (string_view access_token) + Set OAuth 2.0 Bearer Access Token. More...
+  void set_cainfo (string_view path)  Set path to Certificate Authority (CA) bundle. More...
  @@ -658,8 +658,8 @@ Protected Attributes - -

◆ set_access_token()

+ +

◆ set_access_token()

@@ -670,7 +670,7 @@ Protected Attributes void mastodonpp::CURLWrapper::set_access_token ( - const string_view  + string_view  access_token) @@ -738,12 +738,13 @@ Protected Attributes

Set path to Certificate Authority (CA) bundle.

Since
0.3.0
253 {
-
254  CURLcode code{curl_easy_setopt(_connection, CURLOPT_CAINFO, path.data())};
-
255  if (code != CURLE_OK)
-
256  {
-
257  throw CURLException{code, "Could not set CA info.", _curl_buffer_error};
-
258  }
-
259 }
+
254  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
255  CURLcode code{curl_easy_setopt(_connection, CURLOPT_CAINFO, path.data())};
+
256  if (code != CURLE_OK)
+
257  {
+
258  throw CURLException{code, "Could not set CA info.", _curl_buffer_error};
+
259  }
+
260 }
@@ -817,17 +818,17 @@ Protected Attributes

Sets the User-Agent.

Since
0.3.0
-
262 {
-
263  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
264  CURLcode code{curl_easy_setopt(_connection, CURLOPT_USERAGENT,
-
265  useragent.data())};
-
266  if (code != CURLE_OK)
-
267  {
-
268  throw CURLException{code, "Failed to set User-Agent",
-
269  _curl_buffer_error};
-
270  }
-
271  debuglog << "Set User-Agent to: " << useragent << '\n';
-
272 }
+
263 {
+
264  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
265  CURLcode code{curl_easy_setopt(_connection, CURLOPT_USERAGENT,
+
266  useragent.data())};
+
267  if (code != CURLE_OK)
+
268  {
+
269  throw CURLException{code, "Failed to set User-Agent",
+
270  _curl_buffer_error};
+
271  }
+
272  debuglog << "Set User-Agent to: " << useragent << '\n';
+
273 }
@@ -880,7 +881,7 @@ Protected Attributes
199 
200  if (!access_token.empty())
201  {
-
202  set_access_token(access_token);
+
202  set_access_token(access_token);
203  }
204 
205  if (!cainfo.empty())
@@ -972,10 +973,10 @@ Protected Attributes
  • src/curl_wrapper.cpp
  • -
    void set_access_token(const string_view access_token)
    Set OAuth 2.0 Bearer Access Token.
    Definition: curl_wrapper.cpp:226
    void set_proxy(string_view proxy)
    Set the proxy to use.
    Definition: curl_wrapper.cpp:216
    void set_cainfo(string_view path)
    Set path to Certificate Authority (CA) bundle.
    Definition: curl_wrapper.cpp:252
    -
    void set_useragent(string_view useragent)
    Sets the User-Agent.
    Definition: curl_wrapper.cpp:261
    +
    void set_useragent(string_view useragent)
    Sets the User-Agent.
    Definition: curl_wrapper.cpp:262
    +
    void set_access_token(string_view access_token)
    Set OAuth 2.0 Bearer Access Token.
    Definition: curl_wrapper.cpp:226