Commit Graph

50 Commits

Author SHA1 Message Date
tastytea 1c3efd3589
Typo: A space too much. 2020-02-12 20:22:47 +01:00
tastytea 185ab91978
Rename buffer_mutex → _buffer_mutex.
continuous-integration/drone/push Build is passing Details
2020-01-28 08:11:56 +01:00
tastytea 56cabf48a8
Add clang-tidy exceptions for http_method. 2020-01-27 01:09:20 +01:00
tastytea deeff83410
Make some private members of CURLWrapper static.
continuous-integration/drone/push Build is passing Details
replace_parameter_in_uri(), add_parameters_to_uri() and add_mime_part().
2020-01-26 08:50:05 +01:00
tastytea 02a22d773c
Make set_proxy(), set_cainfo(), set_useragent() virtual.
continuous-integration/drone/push Build is passing Details
2020-01-24 22:06:47 +01:00
tastytea bb088e6d70
Mark CURLWrapper::get_buffer() inline. 2020-01-24 21:57:15 +01:00
tastytea ac4150a3aa
Fix decumentation for CURLWrapper destructor. 2020-01-24 21:50:51 +01:00
tastytea 9523de8788
Mark buffer variables const.
continuous-integration/drone/push Build is passing Details
2020-01-20 02:46:00 +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 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 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 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 fc210142f5
Expand parametermap documentation.
continuous-integration/drone/push Build is passing Details
2020-01-11 15:25:34 +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 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 c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +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 913130b57d
Escape keyword “API” in documentation. 2020-01-09 15:16:04 +01:00
tastytea d2de78ff9e
Add streaming support. 2020-01-08 21:27:27 +01:00
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 4b118e75f1
Fix / ignore some clang-tidy warnings. 2020-01-08 17:38:27 +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 c07fb1db71
Add support for parameters (GET). 2020-01-08 13:06:12 +01:00
tastytea f195c5bcef
Add get_curl_easy_handle(). 2020-01-06 15:33:23 +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 3c6c56d973
Make curlwrapper_instances static. 2020-01-05 20:27:28 +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 fba5a576f0
Add support for HTTP method PUT. 2020-01-05 16:16:22 +01:00
tastytea a77f773c46
Add support for HTTP methods PATCH and DELETE. 2020-01-05 13:59:43 +01:00
tastytea 078130bac6
Change argument “meth” to “method” in make_request(). 2020-01-05 12:21:58 +01:00
tastytea 9c279822b2
Add headers to answer_type. 2020-01-05 12:03:23 +01:00
tastytea 9b49bc1d17
Optimize request-flow. 😃 2020-01-05 10:35:38 +01:00
tastytea edc2bba718
Improve documentation for CURLWrapper.
continuous-integration/drone/push Build is passing Details
2020-01-04 19:16:08 +01:00
tastytea ccc9b8235e
Add [[nodiscard]] to make_request(). 2020-01-04 19:06:27 +01:00
tastytea 0b525bb748
Add http_method and make_request. 2020-01-04 19:04:50 +01:00
tastytea 051cf16ceb
Remove premature global curl cleanup, improve documentation. 2020-01-04 18:25:26 +01:00
tastytea a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +01:00