Commit Graph

119 Commits

Author SHA1 Message Date
tastytea c01ba95f5a
Remove useless else. 2020-01-16 18:20:37 +01:00
tastytea bdd328ac91
Remove useless const. 2020-01-16 18:19:47 +01:00
tastytea 5e612210ef
Log proxy changes when debugging.
continuous-integration/drone/push Build is passing Details
2020-01-16 18:17:29 +01:00
tastytea 343fe2adca
Add unescape_html().
continuous-integration/drone/push Build is passing Details
2020-01-15 19:09:43 +01:00
tastytea 99f00e331a
Silence false-positive clang-tidy warning,
continuous-integration/drone/push Build was killed Details
and one I can't do anything about.
2020-01-14 23:46:42 +01:00
tastytea 0596406113
Silence false positive clang-tidy warnings in log.hpp. 2020-01-14 23:45:39 +01:00
tastytea 59a9747c06
Add account_id and list_id to list of parameters to replace in URIs.
continuous-integration/drone/push Build is passing Details
2020-01-14 22:50:14 +01:00
tastytea 0d8caf93e2
Fixed endpoint translations. 2020-01-14 22:47:23 +01:00
tastytea c192f352f0
Extract post formats via regex.
continuous-integration/drone/push Build is passing Details
2020-01-14 22:28:14 +01:00
tastytea 0d8b2e8490
Use regex to extract NodeInfo addresses. 2020-01-14 21:53:42 +01:00
tastytea 223db7b255
Use regex to extract max_toot_chars. 2020-01-14 21:03:04 +01:00
tastytea a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
tastytea 1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
tastytea 04526f37cc
Make argument of CURLWrapper::set_cafile() const. 2020-01-12 17:27:40 +01:00
tastytea 975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
tastytea 02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
tastytea deeffc5adf
Bugfix in endpoint translation. 2020-01-12 16:06:44 +01:00
tastytea 79c5087ca5
Marked some functions noexcept.
continuous-integration/drone/push Build is failing Details
2020-01-12 15:28:26 +01:00
tastytea 97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
tastytea cd31af94a6
Bugfix in endpoint translation. 2020-01-12 11:45:15 +01:00
tastytea fd5275f4a3
Return default max chars on exception in get_max_chars(). 2020-01-11 23:04:40 +01:00
tastytea 1a99e8a276
Made code in Connection::get_new_events() clearer. 2020-01-11 22:16:37 +01:00
tastytea a6b328c2d1
Add Instance::get_post_formats().
continuous-integration/drone/push Build is passing Details
2020-01-11 20:05:11 +01:00
tastytea b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
tastytea 40d985f9af
Add missing header. 2020-01-11 18:13:15 +01:00
tastytea 597cf41668
Don't check errors if it can't fail.
continuous-integration/drone/push Build is passing Details
2020-01-11 18:08:33 +01:00
tastytea 078f6d0c73
Log URI replacements. 2020-01-11 16:42:01 +01:00
tastytea 4a940062d8
Fix wrong endpoint translations.
I forgot a lot of <ID>s.
2020-01-11 16:40:13 +01:00
tastytea 5c61d6fd27
Add support for DELETE requests. 2020-01-11 16:24:06 +01:00
tastytea c67c9db40c
Fix wrong endpoint translations. 2020-01-11 16:13:14 +01:00
tastytea f556df296f
Add HTTP methods PATCH and PUT. 2020-01-11 16:07:40 +01:00
tastytea 5051664136
Fixed some pleroma endpoints. 2020-01-11 15:56:16 +01:00
tastytea 8d04f7e9ea
Add support for sending files in HTTP forms. 2020-01-11 14:36:49 +01:00
tastytea f0a35bfd5b
Add add_mime_part().
Makes code more readable and decreases duplication.
2020-01-11 13:17:35 +01:00
tastytea 7ac1bc1377
Hide CURLWrapper::cancel_stream(). 2020-01-10 18:57:42 +01:00
tastytea 796e159cdc
Actually set the proxy to the string in CURLWrappper::set_proxy(). 2020-01-10 18:50:53 +01:00
tastytea f601e770ac
Define CURLAUTH_BEARER as CURLAUTH_ANY with libcurl < 7.61.0
continuous-integration/drone/push Build is passing Details
2020-01-10 17:43:50 +01:00
tastytea 20167fdce3
Replace if constexpr with preprocessor if.
continuous-integration/drone/push Build is passing Details
2020-01-10 17:15:23 +01:00
tastytea c47a62969f
Only use CURLAUTH_BEARER if libcurl supports it.
continuous-integration/drone/push Build is failing Details
2020-01-10 17:10:36 +01:00
tastytea da033c3ffc
Silence clang-tidy warnings I can't do anything about.
continuous-integration/drone/push Build is failing Details
2020-01-10 14:35:44 +01:00
tastytea cb7019a0fd
Allow HTTP POST without parameters. 2020-01-10 14:33:33 +01:00
tastytea c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +01:00
tastytea 1910e780b0
Add vector fields to HTTP forms. 2020-01-10 14:24:35 +01:00
tastytea 89c50951b3
Fix User-Agent. 2020-01-10 13:41:38 +01:00
tastytea a6139b4390
Implement HTTP POST in Connection. 2020-01-10 13:08:55 +01:00
tastytea f222215116
Implement HTTP POST in CURLWrapper. 2020-01-10 13:08:34 +01:00
tastytea 1263b03999
Add a message only constructor to CURLException. 2020-01-10 12:22:00 +01:00
tastytea 7ba967a36c
Fix answer_type::get_header().
continuous-integration/drone/push Build is passing Details
The previous implementation returned a reference to an out-of-scope string.
2020-01-09 15:54:52 +01:00
tastytea 447fc05dbe
Add get_header() to answer_type.
continuous-integration/drone/push Build is passing Details
2020-01-09 14:00:40 +01:00
tastytea bb6b00114e
Clear buffers before making a request.
continuous-integration/drone/push Build is passing Details
2020-01-09 13:14:24 +01:00