diff --git a/docs/annotated.html b/docs/annotated.html index ccb5802..d3e10be 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/answer_8hpp_source.html b/docs/answer_8hpp_source.html index 744d7b2..77859b6 100644 --- a/docs/answer_8hpp_source.html +++ b/docs/answer_8hpp_source.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/api_8hpp_source.html b/docs/api_8hpp_source.html index 6fee414..83d60e0 100644 --- a/docs/api_8hpp_source.html +++ b/docs/api_8hpp_source.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -307,9 +307,9 @@ $(function() {
281  disable_account,
282  account_register,
283 
-
284  pleroma_notification_settings,
-
285  pleroma_healthcheck,
-
286  pleroma_change_email
+
284  notification_settings,
+
285  healthcheck,
+
286  change_email
287  };
288 
295  using endpoint_type = variant<v1,v2,oauth,other,pleroma>;
diff --git a/docs/classes.html b/docs/classes.html index 03a5e88..4402b3d 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/classmastodonpp_1_1API-members.html b/docs/classmastodonpp_1_1API-members.html index 12b20e7..9db919e 100644 --- a/docs/classmastodonpp_1_1API-members.html +++ b/docs/classmastodonpp_1_1API-members.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/classmastodonpp_1_1API.html b/docs/classmastodonpp_1_1API.html index 4e53a32..2de18d6 100644 --- a/docs/classmastodonpp_1_1API.html +++ b/docs/classmastodonpp_1_1API.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -282,9 +282,9 @@ Public Types disable_account,
  account_register, -pleroma_notification_settings, -pleroma_healthcheck, -pleroma_change_email +notification_settings, +healthcheck, +change_email
}  An enumeration of all pleroma API endpoints. More...
@@ -443,9 +443,9 @@ Public Member Functions
281  disable_account,
282  account_register,
283 
-
284  pleroma_notification_settings,
-
285  pleroma_healthcheck,
-
286  pleroma_change_email
+
284  notification_settings,
+
285  healthcheck,
+
286  change_email
287  };
diff --git a/docs/classmastodonpp_1_1CURLException-members.html b/docs/classmastodonpp_1_1CURLException-members.html index c4e2916..d235803 100644 --- a/docs/classmastodonpp_1_1CURLException-members.html +++ b/docs/classmastodonpp_1_1CURLException-members.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/classmastodonpp_1_1CURLException.html b/docs/classmastodonpp_1_1CURLException.html index 5ee22c8..fc1c1fd 100644 --- a/docs/classmastodonpp_1_1CURLException.html +++ b/docs/classmastodonpp_1_1CURLException.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/classmastodonpp_1_1CURLWrapper-members.html b/docs/classmastodonpp_1_1CURLWrapper-members.html index b530241..d085831 100644 --- a/docs/classmastodonpp_1_1CURLWrapper-members.html +++ b/docs/classmastodonpp_1_1CURLWrapper-members.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/classmastodonpp_1_1CURLWrapper.html b/docs/classmastodonpp_1_1CURLWrapper.html index 27ce838..2de9447 100644 --- a/docs/classmastodonpp_1_1CURLWrapper.html +++ b/docs/classmastodonpp_1_1CURLWrapper.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -300,9 +300,9 @@ Protected Attributes

Cancel the stream.

The stream will be cancelled, usually whithin a second. The curl_error_code of the answer will be set to 42 (CURLE_ABORTED_BY_CALLBACK).

Since
0.1.0
-
200  {
-
201  _stream_cancelled = true;
-
202  }
+
205  {
+
206  _stream_cancelled = true;
+
207  }
@@ -331,9 +331,9 @@ Protected Attributes

Returns a reference to the buffer libcurl writes into.

Since
0.1.0
-
186  {
-
187  return _curl_buffer_body;
-
188  }
+
191  {
+
192  return _curl_buffer_body;
+
193  }
@@ -363,9 +363,9 @@ Protected Attributes

Returns pointer to the CURL easy handle.

You can use this handle to set or modify curl options. For more information consult curl_easy_setopt(3).

Since
0.1.0
-
139  {
-
140  return _connection;
-
141  }
+
144  {
+
145  return _connection;
+
146  }
@@ -454,61 +454,85 @@ Protected Attributes
111  }
112  case http_method::PATCH:
113  {
-
114  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
115  code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "PATCH");
-
116  break;
-
117  }
-
118  case http_method::PUT:
-
119  {
-
120  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
121  code = curl_easy_setopt(_connection, CURLOPT_UPLOAD, 1L);
-
122  break;
-
123  }
-
124  case http_method::DELETE:
-
125  {
-
126  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
127  code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "DELETE");
-
128  break;
-
129  }
-
130  }
-
131  if (code != CURLE_OK)
-
132  {
-
133  throw CURLException{code, "Failed to set HTTP method",
-
134  _curl_buffer_error};
-
135  }
-
136  debuglog << "Making request to: " << uri << '\n';
+
114  if (!parameters.empty())
+
115  {
+
116  curl_mime *mime{parameters_to_curl_mime(uri, parameters)};
+
117  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
118  code = curl_easy_setopt(_connection, CURLOPT_MIMEPOST, mime);
+
119  }
+
120 
+
121  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
122  code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "PATCH");
+
123 
+
124  break;
+
125  }
+
126  case http_method::PUT:
+
127  {
+
128  if (!parameters.empty())
+
129  {
+
130  curl_mime *mime{parameters_to_curl_mime(uri, parameters)};
+
131  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
132  code = curl_easy_setopt(_connection, CURLOPT_MIMEPOST, mime);
+
133  }
+
134 
+
135  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
136  code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "PUT");
137 
-
138  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
139  code = curl_easy_setopt(_connection, CURLOPT_URL, uri.data());
-
140  if (code != CURLE_OK)
+
138  break;
+
139  }
+
140  case http_method::DELETE:
141  {
-
142  throw CURLException{code, "Failed to set URI", _curl_buffer_error};
-
143  }
-
144 
-
145  answer_type answer;
-
146  code = curl_easy_perform(_connection);
-
147  if (code == CURLE_OK
-
148  || (code == CURLE_ABORTED_BY_CALLBACK && _stream_cancelled))
-
149  {
-
150  long http_status; // NOLINT(google-runtime-int)
-
151  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
-
152  curl_easy_getinfo(_connection, CURLINFO_RESPONSE_CODE, &http_status);
-
153  answer.http_status = static_cast<uint16_t>(http_status);
-
154  debuglog << "HTTP status code: " << http_status << '\n';
-
155 
-
156  answer.headers = _curl_buffer_headers;
-
157  answer.body = _curl_buffer_body;
-
158  }
-
159  else
-
160  {
-
161  answer.curl_error_code = static_cast<uint8_t>(code);
-
162  answer.error_message = _curl_buffer_error;
-
163  debuglog << "libcurl error: " << code << '\n';
-
164  debuglog << _curl_buffer_error << '\n';
-
165  }
-
166 
-
167  return answer;
-
168 }
+
142  if (!parameters.empty())
+
143  {
+
144  curl_mime *mime{parameters_to_curl_mime(uri, parameters)};
+
145  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
146  code = curl_easy_setopt(_connection, CURLOPT_MIMEPOST, mime);
+
147  }
+
148 
+
149  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
150  code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "DELETE");
+
151 
+
152  break;
+
153  }
+
154  }
+
155  if (code != CURLE_OK)
+
156  {
+
157  throw CURLException{code, "Failed to set HTTP method",
+
158  _curl_buffer_error};
+
159  }
+
160  debuglog << "Making request to: " << uri << '\n';
+
161 
+
162  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
163  code = curl_easy_setopt(_connection, CURLOPT_URL, uri.data());
+
164  if (code != CURLE_OK)
+
165  {
+
166  throw CURLException{code, "Failed to set URI", _curl_buffer_error};
+
167  }
+
168 
+
169  answer_type answer;
+
170  code = curl_easy_perform(_connection);
+
171  if (code == CURLE_OK
+
172  || (code == CURLE_ABORTED_BY_CALLBACK && _stream_cancelled))
+
173  {
+
174  long http_status; // NOLINT(google-runtime-int)
+
175  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+
176  curl_easy_getinfo(_connection, CURLINFO_RESPONSE_CODE, &http_status);
+
177  answer.http_status = static_cast<uint16_t>(http_status);
+
178  debuglog << "HTTP status code: " << http_status << '\n';
+
179 
+
180  answer.headers = _curl_buffer_headers;
+
181  answer.body = _curl_buffer_body;
+
182  }
+
183  else
+
184  {
+
185  answer.curl_error_code = static_cast<uint8_t>(code);
+
186  answer.error_message = _curl_buffer_error;
+
187  debuglog << "libcurl error: " << code << '\n';
+
188  debuglog << _curl_buffer_error << '\n';
+
189  }
+
190 
+
191  return answer;
+
192 }
@@ -594,30 +618,30 @@ Protected Attributes

Set OAuth 2.0 Bearer Access Token.

Since
0.1.0
-
171 {
-
172  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
-
173  CURLcode code{curl_easy_setopt(_connection, CURLOPT_XOAUTH2_BEARER,
-
174  access_token.data())};
-
175  if (code != CURLE_OK)
-
176  {
-
177  throw CURLException{code, "Could not set authorization token.",
-
178  _curl_buffer_error};
-
179  }
-
180 
-
181 #if (LIBCURL_VERSION_NUM < 0x073d00) // libcurl < 7.61.0.
-
182 #define CURLAUTH_BEARER CURLAUTH_ANY
-
183 #endif
-
184 
-
185  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
-
186  code = curl_easy_setopt(_connection, CURLOPT_HTTPAUTH, CURLAUTH_BEARER);
-
187  if (code != CURLE_OK)
-
188  {
-
189  throw CURLException{code, "Could not set authorization token.",
-
190  _curl_buffer_error};
-
191  }
-
192 
-
193  debuglog << "Set authorization token.\n";
-
194 }
+
195 {
+
196  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
+
197  CURLcode code{curl_easy_setopt(_connection, CURLOPT_XOAUTH2_BEARER,
+
198  access_token.data())};
+
199  if (code != CURLE_OK)
+
200  {
+
201  throw CURLException{code, "Could not set authorization token.",
+
202  _curl_buffer_error};
+
203  }
+
204 
+
205 #if (LIBCURL_VERSION_NUM < 0x073d00) // libcurl < 7.61.0.
+
206 #define CURLAUTH_BEARER CURLAUTH_ANY
+
207 #endif
+
208 
+
209  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg, hicpp-signed-bitwise)
+
210  code = curl_easy_setopt(_connection, CURLOPT_HTTPAUTH, CURLAUTH_BEARER);
+
211  if (code != CURLE_OK)
+
212  {
+
213  throw CURLException{code, "Could not set authorization token.",
+
214  _curl_buffer_error};
+
215  }
+
216 
+
217  debuglog << "Set authorization token.\n";
+
218 }
diff --git a/docs/classmastodonpp_1_1Connection-members.html b/docs/classmastodonpp_1_1Connection-members.html index b1ebb6d..d11b165 100644 --- a/docs/classmastodonpp_1_1Connection-members.html +++ b/docs/classmastodonpp_1_1Connection-members.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -79,6 +79,8 @@ $(function() { CURLWrapper()mastodonpp::CURLWrapper CURLWrapper(const CURLWrapper &other)=deletemastodonpp::CURLWrapper CURLWrapper(CURLWrapper &&other) noexcept=deletemastodonpp::CURLWrapper + del(const endpoint_variant &endpoint, const parametermap &parameters)mastodonpp::Connection + del(const endpoint_variant &endpoint)mastodonpp::Connectioninline get(const endpoint_variant &endpoint, const parametermap &parameters)mastodonpp::Connection get(const endpoint_variant &endpoint)mastodonpp::Connectioninline get_buffer()mastodonpp::CURLWrapperinlineprotected @@ -88,8 +90,12 @@ $(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 + patch(const endpoint_variant &endpoint, const parametermap &parameters)mastodonpp::Connection + patch(const endpoint_variant &endpoint)mastodonpp::Connectioninline post(const endpoint_variant &endpoint, const parametermap &parameters)mastodonpp::Connection post(const endpoint_variant &endpoint)mastodonpp::Connectioninline + put(const endpoint_variant &endpoint, const parametermap &parameters)mastodonpp::Connection + put(const endpoint_variant &endpoint)mastodonpp::Connectioninline set_access_token(const string_view access_token)mastodonpp::CURLWrapperprotected set_proxy(string_view proxy)mastodonpp::CURLWrapper ~CURLWrapper() noexceptmastodonpp::CURLWrappervirtual diff --git a/docs/classmastodonpp_1_1Connection.html b/docs/classmastodonpp_1_1Connection.html index 0a1fe79..1b043ba 100644 --- a/docs/classmastodonpp_1_1Connection.html +++ b/docs/classmastodonpp_1_1Connection.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -105,6 +105,24 @@ Public Member Functions answer_type post (const endpoint_variant &endpoint)  Make a HTTP POST call. More...
  +answer_type patch (const endpoint_variant &endpoint, const parametermap &parameters) + Make a HTTP PATCH call with parameters. More...
+  +answer_type patch (const endpoint_variant &endpoint) + Make a HTTP PATCH call. More...
+  +answer_type put (const endpoint_variant &endpoint, const parametermap &parameters) + Make a HTTP PUT call with parameters. More...
+  +answer_type put (const endpoint_variant &endpoint) + Make a HTTP PUT call. More...
+  +answer_type del (const endpoint_variant &endpoint, const parametermap &parameters) + Make a HTTP DELETE call with parameters. More...
+  +answer_type del (const endpoint_variant &endpoint) + Make a HTTP DELETE call. More...
+  string get_new_stream_contents ()  Copy new stream contents and delete the “original”. More...
  @@ -240,9 +258,89 @@ Additional Inherited Members

Cancel the stream.

The stream will be cancelled, usually whithin a second. The curl_error_code of the answer will be set to 42 (CURLE_ABORTED_BY_CALLBACK).

Since
0.1.0
-
186  {
-
187  CURLWrapper::cancel_stream();
-
188  }
+
264  {
+ +
266  }
+
+
+ + +

◆ del() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
answer_type mastodonpp::Connection::del (const endpoint_variantendpoint)
+
+inline
+
+ +

Make a HTTP DELETE call.

+
Parameters
+ + +
endpointEndpoint as API::endpoint_type or std::string_view.
+
+
+
Since
0.2.0
+
238  {
+
239  return del(endpoint, {});
+
240  }
+
+
+
+ +

◆ del() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
answer_type mastodonpp::Connection::del (const endpoint_variantendpoint,
const parametermapparameters 
)
+
+ +

Make a HTTP DELETE call with parameters.

+
Parameters
+ + + +
endpointEndpoint as API::endpoint_type or std::string_view.
parametersA map of parameters.
+
+
+
Since
0.2.0
+
80 {
+
81  return make_request(http_method::DELETE,
+
82  endpoint_to_uri(endpoint), parameters);
+
83 }
@@ -349,33 +447,33 @@ Additional Inherited Members

Get new stream events.

Since
0.1.0
-
75 {
-
76  buffer_mutex.lock();
-
77  auto &buffer{get_buffer()};
-
78  vector<event_type> events;
-
79 
-
80  size_t pos{0};
-
81  while ((pos = buffer.find("event: ")) != string::npos)
-
82  {
-
83  const auto endpos{buffer.find("\n\n", pos)};
-
84  if (endpos == string::npos)
-
85  {
-
86  break;
-
87  }
-
88 
-
89  event_type event;
-
90  pos += 7; // Length of "event: ".
-
91  event.type = buffer.substr(pos, buffer.find('\n', pos) - pos);
-
92  pos = buffer.find("data: ") + 6;
-
93  event.data = buffer.substr(pos, endpos - pos);
-
94  events.push_back(event);
-
95 
-
96  buffer.erase(0, endpos);
-
97  }
-
98 
-
99  buffer_mutex.unlock();
-
100  return events;
-
101 }
+
96 {
+
97  buffer_mutex.lock();
+
98  auto &buffer{get_buffer()};
+
99  vector<event_type> events;
+
100 
+
101  size_t pos{0};
+
102  while ((pos = buffer.find("event: ")) != string::npos)
+
103  {
+
104  const auto endpos{buffer.find("\n\n", pos)};
+
105  if (endpos == string::npos)
+
106  {
+
107  break;
+
108  }
+
109 
+
110  event_type event;
+
111  pos += 7; // Length of "event: ".
+
112  event.type = buffer.substr(pos, buffer.find('\n', pos) - pos);
+
113  pos = buffer.find("data: ") + 6;
+
114  event.data = buffer.substr(pos, endpos - pos);
+
115  events.push_back(event);
+
116 
+
117  buffer.erase(0, endpos);
+
118  }
+
119 
+
120  buffer_mutex.unlock();
+
121  return events;
+
122 }
@@ -398,14 +496,94 @@ Additional Inherited Members

Note that the last event is not necessarily complete, it could happen that you are calling this function mid-transfer. You have to check the data integrity yourself.

Using get_new_events() instead is recommended.

Since
0.1.0
-
65 {
-
66  buffer_mutex.lock();
-
67  auto &buffer{get_buffer()};
-
68  auto buffer_copy{buffer};
-
69  buffer.clear();
-
70  buffer_mutex.unlock();
-
71  return buffer_copy;
-
72 }
+
86 {
+
87  buffer_mutex.lock();
+
88  auto &buffer{get_buffer()};
+
89  auto buffer_copy{buffer};
+
90  buffer.clear();
+
91  buffer_mutex.unlock();
+
92  return buffer_copy;
+
93 }
+
+
+ + +

◆ patch() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
answer_type mastodonpp::Connection::patch (const endpoint_variantendpoint)
+
+inline
+
+ +

Make a HTTP PATCH call.

+
Parameters
+ + +
endpointEndpoint as API::endpoint_type or std::string_view.
+
+
+
Since
0.2.0
+
186  {
+
187  return patch(endpoint, {});
+
188  }
+
+
+
+ +

◆ patch() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
answer_type mastodonpp::Connection::patch (const endpoint_variantendpoint,
const parametermapparameters 
)
+
+ +

Make a HTTP PATCH call with parameters.

+
Parameters
+ + + +
endpointEndpoint as API::endpoint_type or std::string_view.
parametersA map of parameters.
+
+
+
Since
0.2.0
+
66 {
+
67  return make_request(http_method::PATCH,
+
68  endpoint_to_uri(endpoint), parameters);
+
69 }
@@ -496,6 +674,86 @@ Additional Inherited Members + +

◆ put() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
answer_type mastodonpp::Connection::put (const endpoint_variantendpoint)
+
+inline
+
+ +

Make a HTTP PUT call.

+
Parameters
+ + +
endpointEndpoint as API::endpoint_type or std::string_view.
+
+
+
Since
0.2.0
+
212  {
+
213  return put(endpoint, {});
+
214  }
+
+
+
+ +

◆ put() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
answer_type mastodonpp::Connection::put (const endpoint_variantendpoint,
const parametermapparameters 
)
+
+ +

Make a HTTP PUT call with parameters.

+
Parameters
+ + + +
endpointEndpoint as API::endpoint_type or std::string_view.
parametersA map of parameters.
+
+
+
Since
0.2.0
+
73 {
+
74  return make_request(http_method::PUT,
+
75  endpoint_to_uri(endpoint), parameters);
+
76 }
+
+
+

The documentation for this class was generated from the following files: diff --git a/docs/exceptions_8hpp_source.html b/docs/exceptions_8hpp_source.html index 9a4d3d8..87c1d36 100644 --- a/docs/exceptions_8hpp_source.html +++ b/docs/exceptions_8hpp_source.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/files.html b/docs/files.html index c69e4a2..28a6325 100644 --- a/docs/files.html +++ b/docs/files.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
diff --git a/docs/functions.html b/docs/functions.html index 84cbd37..a81623d 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -22,7 +22,7 @@
mastodonpp -  0.1.0 +  0.2.0
@@ -105,6 +105,9 @@ $(function() {
  • data : mastodonpp::event_type
  • +
  • del() +: mastodonpp::Connection +
  • @@ -205,12 +208,18 @@ $(function() {

    - p -

    diff --git a/docs/functions_enum.html b/docs/functions_enum.html index 9a19c2e..9eba111 100644 --- a/docs/functions_enum.html +++ b/docs/functions_enum.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    diff --git a/docs/functions_func.html b/docs/functions_func.html index 25622ec..300540d 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    @@ -83,7 +83,14 @@ $(function() { : mastodonpp::CURLException
  • CURLWrapper() -: mastodonpp::CURLWrapper +: mastodonpp::CURLWrapper +
  • + + + +

    - d -

    @@ -153,9 +160,15 @@ $(function() {

    - p -

    diff --git a/docs/functions_rela.html b/docs/functions_rela.html index edc67bd..7b5697a 100644 --- a/docs/functions_rela.html +++ b/docs/functions_rela.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    diff --git a/docs/functions_type.html b/docs/functions_type.html index 68e01b8..dd24ff9 100644 --- a/docs/functions_type.html +++ b/docs/functions_type.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    diff --git a/docs/functions_vars.html b/docs/functions_vars.html index ad9d152..69ed937 100644 --- a/docs/functions_vars.html +++ b/docs/functions_vars.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    diff --git a/docs/hierarchy.html b/docs/hierarchy.html index 77b29c3..c7f1fe6 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    diff --git a/docs/index.html b/docs/index.html index 46a0ced..e93c0fb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    @@ -95,7 +95,10 @@ Example
    }

    Input

    -

    All text input is expected to be UTF-8.

    +

    Exceptions

    Any unrecoverable libcurl error will be thrown as a mastodonpp::CURLException. Network errors will not be thrown, but reported via the return value.

    diff --git a/docs/instance_8hpp_source.html b/docs/instance_8hpp_source.html index fc3881e..7dbb986 100644 --- a/docs/instance_8hpp_source.html +++ b/docs/instance_8hpp_source.html @@ -22,7 +22,7 @@
    mastodonpp -  0.1.0 +  0.2.0
    @@ -169,7 +169,7 @@ $(function() {
    void set_proxy(const string_view proxy)
    Set the proxy to use.
    Definition: instance.hpp:118
    string_view get_baseuri() const
    Returns the base URI.
    Definition: instance.hpp:76
    Holds the access data of an instance.
    Definition: instance.hpp:42
    -
    Handles the details of network connections.
    Definition: curl_wrapper.hpp:91
    +
    Handles the details of network connections.
    Definition: curl_wrapper.hpp:96
    string_view get_hostname() const
    Returns the hostname.
    Definition: instance.hpp:63