1e46466114
Add option to disable hostname check ( #399 )
...
* Suppress compiler warnings about unused elements.
* Enable CMake's compilation database.
* Add TLS option to disable checking a certificate's host name.
* Add `--disable-hostname-validation` to `ws`.
* Add test for disabling hostname validation.
2022-10-12 06:41:32 -07:00
db7057de69
Add support for streaming transfers ( #353 )
...
This change adds onChunkCallback to the request. If defined it will be
called repeatedly with the incoming data. This allows to process data on
the go or write it to disk instead of accumulating the data in memory.
2022-01-31 21:54:32 -08:00
66cd29e747
Allow to cancel asynchronous HTTP requests ( #332 )
...
Usage:
auto args = this->httpClient.createRequest(url, method);
httpClient.performRequest(args, ...);
[...]
// Oops, we don't actually want to complete the request!
args->cancel = true;
2021-12-20 23:01:55 -08:00
a383ac10d9
make sure the unittest pass withouth SSL
2019-10-03 09:41:17 -07:00
bf46f3fe8f
unittest / specify a cacert for tls client tests
2019-09-29 21:24:22 -07:00
4cd11fdbc7
mbedtls fixes / the unittest now pass on macOS, and hopefully will on Windows/AppVeyor as well.
2019-09-27 14:07:01 -07:00
cd3c9d879c
reformat everything with clang-format
2019-09-23 10:25:23 -07:00
78b3d7ff2d
Feature/http async ( #90 )
...
* unittest working / uses shared_ptr for a bunch of things 🗿
* fix command line tools
* fix ws + add doc
* add more logging
2019-06-05 17:04:24 -07:00
539abe5151
HttpResponse is a struct, not a tuple 🉐
2019-06-03 22:12:52 -07:00
6b933391e5
http client: stop hardcoding Accept header, and use a default value if one is passed in 👭
2019-06-03 14:02:54 -07:00
1e2a5ee21d
Add simple HTTP and HTTPS client test ㊙️
2019-06-03 12:23:35 -07:00