Commit Graph

311 Commits

Author SHA1 Message Date
tastytea a724006854
Make curl writer non-satatic and add static wrapper.
We need to use the mutex, a class member, from within the writer function.
2020-01-08 19:55:34 +01:00
tastytea c93810e241
Move URI building for GET requets to add_parameters_to_uri(). 2020-01-08 17:51:53 +01:00
tastytea 6b5936a4b6
Replace append with +=.
continuous-integration/drone/push Build is passing Details
2020-01-08 17:39:47 +01:00
tastytea 4b118e75f1
Fix / ignore some clang-tidy warnings. 2020-01-08 17:38:27 +01:00
tastytea 577c252b42
Improve documentation. 2020-01-08 17:22:41 +01:00
tastytea deed340f3d
Add set_proxy(). 2020-01-08 17:20:36 +01:00
tastytea 1f78b00205
Replace string with string_view where possible. 2020-01-08 16:46:27 +01:00
tastytea d4ed04f0cd
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-08 14:15:14 +01:00
tastytea 2ab0018df9
Replace arguments in URI.
continuous-integration/drone/push Build is passing Details
id, nickname, nickname_or_id, hashtag, permission_group.
2020-01-08 14:13:55 +01:00
tastytea c07fb1db71
Add support for parameters (GET). 2020-01-08 13:06:12 +01:00
tastytea 15c1e15466
Follow up to 10 HTTP redirects automatically.
This includes permanent redirects.
2020-01-08 11:53:01 +01:00
tastytea 50ae16002b
Make curlwrapper_instances explicitly atomic.
continuous-integration/drone/push Build is passing Details
2020-01-08 11:27:19 +01:00
tastytea bbd0445821
Add sections about thread safety and text input to documentation. 2020-01-08 11:07:16 +01:00
tastytea b1c99e70b8
CI: Compile exmaples.
continuous-integration/drone/push Build is passing Details
2020-01-07 09:16:30 +01:00
tastytea 709570be62
CI: Test with clang. 2020-01-07 09:13:57 +01:00
tastytea 31ce23febf
Fix include in example, prefer local header. 2020-01-07 09:02:16 +01:00
tastytea 935c84e001
Search for all directories in shorten_filename().
continuous-integration/drone/push Build is passing Details
2020-01-06 16:43:14 +01:00
tastytea 27054d480e
Fix initialization notation of version. 2020-01-06 16:42:42 +01:00
tastytea f01ec3eee0
Set User-Agent. 2020-01-06 16:38:09 +01:00
tastytea f195c5bcef
Add get_curl_easy_handle(). 2020-01-06 15:33:23 +01:00
tastytea 7917d94248
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-06 14:45:19 +01:00
tastytea 5d90fa97f1
Renamed return_types.hpp to answer.hpp.
continuous-integration/drone/push Build is passing Details
2020-01-06 14:43:10 +01:00
tastytea 1ac1bda619
Add parametermap. 2020-01-06 13:29:38 +01:00
tastytea a1a6997619
Exclude shorten_filename from doxygen.
continuous-integration/drone/push Build is passing Details
2020-01-06 10:03:18 +01:00
tastytea cda40d193f
Add doxygen-reference to example. 2020-01-06 10:02:59 +01:00
tastytea 505a29bcb4
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-06 09:48:19 +01:00
tastytea 5d6ad60d3b
Add simple example.
continuous-integration/drone/push Build is passing Details
2020-01-06 09:43:08 +01:00
tastytea 7563d083c0
Improve exception documentation. 2020-01-06 09:42:51 +01:00
tastytea 0638f8fe9a
Query max_toot_chars the first time get_max_chars() is called. 2020-01-06 09:31:05 +01:00
tastytea 6663cca653
Change signature of Instance. 2020-01-06 09:11:32 +01:00
tastytea a6bd081280
Refactored constructor of Instance.
continuous-integration/drone/push Build is passing Details
2020-01-05 20:47:34 +01:00
tastytea cb7dee1ab7
Add errorlog.
continuous-integration/drone/push Build is passing Details
2020-01-05 20:39:05 +01:00
tastytea 3c6c56d973
Make curlwrapper_instances static. 2020-01-05 20:27:28 +01:00
tastytea b93fe57cae
Show filename in debuglog instead of function. 2020-01-05 20:19:59 +01:00
tastytea b8802d3674
Make assignment to _max_chars clearer. 2020-01-05 20:10:54 +01:00
tastytea be2f00faae
Do global curl init / cleanup only once.
continuous-integration/drone/push Build is passing Details
2020-01-05 19:09:22 +01:00
tastytea 159cd05f5a
Make _endpoint_map static. 2020-01-05 19:00:24 +01:00
tastytea ab5c4ee290
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-05 16:18:16 +01:00
tastytea fba5a576f0
Add support for HTTP method PUT. 2020-01-05 16:16:22 +01:00
tastytea 1bfe3136aa
Add placeholder for :hashtag. 2020-01-05 16:15:58 +01:00
tastytea 765fc86179
Add all API endpoints of Pleroma 1.1.7.
continuous-integration/drone/push Build is passing Details
2020-01-05 16:01:38 +01:00
tastytea 571206c9f4
Only construct 1 API per Connection.
continuous-integration/drone/push Build is passing Details
2020-01-05 15:20:59 +01:00
tastytea 1226f7e57b
Add all API endpoints of Mastodon 3.0. 2020-01-05 15:03:30 +01:00
tastytea a77f773c46
Add support for HTTP methods PATCH and DELETE. 2020-01-05 13:59:43 +01:00
tastytea 270359f719
Add curl to dependency list.
continuous-integration/drone/push Build is passing Details
2020-01-05 13:46:24 +01:00
tastytea 9a6cfdc899
Updated example in documentation.
continuous-integration/drone/push Build is passing Details
2020-01-05 13:40:21 +01:00
tastytea 398383143a
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-05 13:26:44 +01:00
tastytea 6edc461c57
Explicitly set NDEBUG for non-debug builds. 2020-01-05 12:45:50 +01:00
tastytea 4cbda2c091
Include function name instead of file name in debuglog. 2020-01-05 12:41:25 +01:00
tastytea 31950d280d
make_request(): Return complete answer_type,
and don't throw if curl_easy_perform() fails.
2020-01-05 12:32:57 +01:00