Commit Graph

33 Commits

Author SHA1 Message Date
20167fdce3
Replace if constexpr with preprocessor if.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-10 17:15:23 +01:00
c47a62969f
Only use CURLAUTH_BEARER if libcurl supports it.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-10 17:10:36 +01:00
da033c3ffc
Silence clang-tidy warnings I can't do anything about.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-10 14:35:44 +01:00
cb7019a0fd
Allow HTTP POST without parameters. 2020-01-10 14:33:33 +01:00
c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +01:00
1910e780b0
Add vector fields to HTTP forms. 2020-01-10 14:24:35 +01:00
89c50951b3
Fix User-Agent. 2020-01-10 13:41:38 +01:00
f222215116
Implement HTTP POST in CURLWrapper. 2020-01-10 13:08:34 +01:00
bb6b00114e
Clear buffers before making a request.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 13:14:24 +01:00
839e29b37b
Expand section about thread safety in documentation. 2020-01-09 11:23:30 +01:00
7edcb7c507
Add streaming example. 2020-01-08 21:49:48 +01:00
0e3b812b54
Only check for libcurl return code if it could return an error. 2020-01-08 21:36:59 +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
deed340f3d
Add set_proxy(). 2020-01-08 17:20:36 +01:00
1f78b00205
Replace string with string_view where possible. 2020-01-08 16:46:27 +01:00
2ab0018df9
Replace arguments in URI.
All checks were successful
continuous-integration/drone/push Build is passing
id, nickname, nickname_or_id, hashtag, permission_group.
2020-01-08 14:13:55 +01:00
c07fb1db71
Add support for parameters (GET). 2020-01-08 13:06:12 +01:00
15c1e15466
Follow up to 10 HTTP redirects automatically.
This includes permanent redirects.
2020-01-08 11:53:01 +01:00
50ae16002b
Make curlwrapper_instances explicitly atomic.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-08 11:27:19 +01:00
f01ec3eee0
Set User-Agent. 2020-01-06 16:38:09 +01:00
3c6c56d973
Make curlwrapper_instances static. 2020-01-05 20:27:28 +01:00
be2f00faae
Do global curl init / cleanup only once.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 19:09:22 +01:00
fba5a576f0
Add support for HTTP method PUT. 2020-01-05 16:16:22 +01:00
a77f773c46
Add support for HTTP methods PATCH and DELETE. 2020-01-05 13:59:43 +01:00
31950d280d
make_request(): Return complete answer_type,
and don't throw if curl_easy_perform() fails.
2020-01-05 12:32:57 +01:00
078130bac6
Change argument “meth” to “method” in make_request(). 2020-01-05 12:21:58 +01:00
9c279822b2
Add headers to answer_type. 2020-01-05 12:03:23 +01:00
9b49bc1d17
Optimize request-flow. 😃 2020-01-05 10:35:38 +01:00
0b525bb748
Add http_method and make_request. 2020-01-04 19:04:50 +01:00
051cf16ceb
Remove premature global curl cleanup, improve documentation. 2020-01-04 18:25:26 +01:00
a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +01:00