Commit Graph

107 Commits

Author SHA1 Message Date
968863301a
Mark ObtainToken constructor explicit. 2020-01-14 23:27:30 +01:00
a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
9ae50917dd
Remove Instance::get_proxy() and Instance::get_cainfo().
Some checks failed
continuous-integration/drone/push Build is failing
We can't get the values that were set using environment variables or build-time
options. We don't need them anymore for initializing “Connection”s.
2020-01-12 17:39:39 +01:00
1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
b4428ed823
Mark CURLWrapper::escape_url() and unescape_url() nodiscard. 2020-01-12 17:01:09 +01:00
78ef177e58
Hide CURLWrapper::set_proxy(). 2020-01-12 17:00:49 +01:00
b192bc70c7
Fix @since-tags that point to nonexisting versions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-12 16:30:20 +01:00
7af01ffb17
Add ObtainToken-example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-12 16:28:11 +01:00
02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
79c5087ca5
Marked some functions noexcept.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-12 15:28:26 +01:00
7fc19639b1
Add missing header. 2020-01-12 15:25:04 +01:00
97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
b2f370a727
Add escape_url() and unescape_url() to CURLWrapper. 2020-01-12 01:04:23 +01:00
a6b328c2d1
Add Instance::get_post_formats().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 20:05:11 +01:00
b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
d749e3aa23
Improve documentation for get_max_chars(). 2020-01-11 17:59:14 +01:00
f3f8efac25
Add DELETE example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 16:45:31 +01:00
5c61d6fd27
Add support for DELETE requests. 2020-01-11 16:24:06 +01:00
03b097c6a6
Fix patch() and put() requests without parameters.
Connection::patch() and Connection::put() without parameters were making a POST
request.
2020-01-11 16:21:44 +01:00
905a5aae0e
Fix version information for Connection::patch() and put().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 16:16:55 +01:00
ed43f74c01
Add examples 05 and 06. 2020-01-11 16:16:50 +01:00
f556df296f
Add HTTP methods PATCH and PUT. 2020-01-11 16:07:40 +01:00
5051664136
Fixed some pleroma endpoints. 2020-01-11 15:56:16 +01:00
fc210142f5
Expand parametermap documentation.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 15:25:34 +01:00
d14f750c39
Add example for posting an attachment. 2020-01-11 15:25:20 +01:00
45e22b5d1e
Improve parametermap example. 2020-01-11 14:38:03 +01:00
8d04f7e9ea
Add support for sending files in HTTP forms. 2020-01-11 14:36:49 +01:00
f0a35bfd5b
Add add_mime_part().
Makes code more readable and decreases duplication.
2020-01-11 13:17:35 +01:00
caf94e6c17
Add example03 to reference.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-10 19:40:16 +01:00
fbcded6e1e
Simplified buffer_mutex documentation. 2020-01-10 19:03:58 +01:00
7ac1bc1377
Hide CURLWrapper::cancel_stream(). 2020-01-10 18:57:42 +01:00
f7191d1f3b
Add support for setting the access token. 2020-01-10 14:27:00 +01:00
c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +01:00
a6139b4390
Implement HTTP POST in Connection. 2020-01-10 13:08:55 +01:00
f222215116
Implement HTTP POST in CURLWrapper. 2020-01-10 13:08:34 +01:00
529e4bca6d
Add parameterpair. 2020-01-10 12:22:14 +01:00
1263b03999
Add a message only constructor to CURLException. 2020-01-10 12:22:00 +01:00
7ba967a36c
Fix answer_type::get_header().
All checks were successful
continuous-integration/drone/push Build is passing
The previous implementation returned a reference to an out-of-scope string.
2020-01-09 15:54:52 +01:00
913130b57d
Escape keyword “API” in documentation. 2020-01-09 15:16:04 +01:00
447fc05dbe
Add get_header() to answer_type.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 14:00:40 +01:00
ec41063488
Add get_new_events().
All checks were successful
continuous-integration/drone/push Build is passing
A more comfortable way to consume stream events.
2020-01-09 12:24:29 +01:00
839e29b37b
Expand section about thread safety in documentation. 2020-01-09 11:23:30 +01:00
e4a5b8e9ce
Move set_proxy() to Instance. 2020-01-09 11:23:15 +01:00
1f9ddf353c
Add streaming example to reference. 2020-01-08 22:29:01 +01:00
f401f9d1b2
Improve documentation for new_stream_contents(). 2020-01-08 21:56:54 +01:00
d2de78ff9e
Add streaming support. 2020-01-08 21:27:27 +01:00
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
c93810e241
Move URI building for GET requets to add_parameters_to_uri(). 2020-01-08 17:51:53 +01:00
4b118e75f1
Fix / ignore some clang-tidy warnings. 2020-01-08 17:38:27 +01:00