Commit Graph

114 Commits

Author SHA1 Message Date
tastytea bdd328ac91
Remove useless const. 2020-01-16 18:19:47 +01:00
tastytea 8cfba1f16b
Add example to unescape_html() documentation. 2020-01-16 18:06:14 +01:00
tastytea 343fe2adca
Add unescape_html().
continuous-integration/drone/push Build is passing Details
2020-01-15 19:09:43 +01:00
tastytea a237d74a81
Use bracket initialization in example code. 2020-01-14 23:34:50 +01:00
tastytea 9ccd724693
Mark parse_pagination() nodiscard. 2020-01-14 23:32:04 +01:00
tastytea be42f30631
Removed superfluous const from parameter for readability. 2020-01-14 23:31:39 +01:00
tastytea 7afc8d19a9
Add documentation for set_useragent().
continuous-integration/drone/push Build is passing Details
2020-01-14 23:28:20 +01:00
tastytea 968863301a
Mark ObtainToken constructor explicit. 2020-01-14 23:27:30 +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 9ae50917dd
Remove Instance::get_proxy() and Instance::get_cainfo().
continuous-integration/drone/push Build is failing Details
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
tastytea 1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
tastytea 975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
tastytea b4428ed823
Mark CURLWrapper::escape_url() and unescape_url() nodiscard. 2020-01-12 17:01:09 +01:00
tastytea 78ef177e58
Hide CURLWrapper::set_proxy(). 2020-01-12 17:00:49 +01:00
tastytea b192bc70c7
Fix @since-tags that point to nonexisting versions.
continuous-integration/drone/push Build is passing Details
2020-01-12 16:30:20 +01:00
tastytea 7af01ffb17
Add ObtainToken-example.
continuous-integration/drone/push Build is passing Details
2020-01-12 16:28:11 +01:00
tastytea 02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +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 7fc19639b1
Add missing header. 2020-01-12 15:25:04 +01:00
tastytea 97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
tastytea b2f370a727
Add escape_url() and unescape_url() to CURLWrapper. 2020-01-12 01:04:23 +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 d749e3aa23
Improve documentation for get_max_chars(). 2020-01-11 17:59:14 +01:00
tastytea f3f8efac25
Add DELETE example.
continuous-integration/drone/push Build is passing Details
2020-01-11 16:45:31 +01:00
tastytea 5c61d6fd27
Add support for DELETE requests. 2020-01-11 16:24:06 +01:00
tastytea 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
tastytea 905a5aae0e
Fix version information for Connection::patch() and put().
continuous-integration/drone/push Build is passing Details
2020-01-11 16:16:55 +01:00
tastytea ed43f74c01
Add examples 05 and 06. 2020-01-11 16:16:50 +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 fc210142f5
Expand parametermap documentation.
continuous-integration/drone/push Build is passing Details
2020-01-11 15:25:34 +01:00
tastytea d14f750c39
Add example for posting an attachment. 2020-01-11 15:25:20 +01:00
tastytea 45e22b5d1e
Improve parametermap example. 2020-01-11 14:38:03 +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 caf94e6c17
Add example03 to reference.
continuous-integration/drone/push Build is passing Details
2020-01-10 19:40:16 +01:00
tastytea fbcded6e1e
Simplified buffer_mutex documentation. 2020-01-10 19:03:58 +01:00
tastytea 7ac1bc1377
Hide CURLWrapper::cancel_stream(). 2020-01-10 18:57:42 +01:00
tastytea f7191d1f3b
Add support for setting the access token. 2020-01-10 14:27:00 +01:00
tastytea c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +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 529e4bca6d
Add parameterpair. 2020-01-10 12:22:14 +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 913130b57d
Escape keyword “API” in documentation. 2020-01-09 15:16:04 +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 ec41063488
Add get_new_events().
continuous-integration/drone/push Build is passing Details
A more comfortable way to consume stream events.
2020-01-09 12:24:29 +01:00
tastytea 839e29b37b
Expand section about thread safety in documentation. 2020-01-09 11:23:30 +01:00