1
0
mirror of synced 2025-06-10 20:21:41 +03:00
Commit Graph

436 Commits

Author SHA1 Message Date
224119a60a Retry in case of too many sockets opened instead of stopping the server. 2019-09-30 11:48:02 +02:00
c02849e269 Removed CPPHTTPLIB_USE_POLL, added CPPHTTPLIB_USE_SELECT 2019-09-29 19:43:22 -04:00
71979b1e88 Merge pull request #226 from Zefz/mingw-compile-fix
Fix compilation on Mingw-64
2019-09-27 17:29:33 -04:00
b14b7b0f8f Fix compilation on Mingw-64 2019-09-27 20:23:16 +02:00
9dbe0d855c Fix compile error in android ndk 2019-09-27 13:32:23 +08:00
94fc229c44 Add missing explicit const_cast 2019-09-26 22:20:33 +02:00
a7052cba22 Fix several -Wold-style-cast warnings in Clang-9 2019-09-26 22:03:18 +02:00
c946eb7699 Fixed warnings on Windows 2019-09-26 08:13:20 -04:00
c7f8561472 Added ssl_context member function to SSLClient in
order to allow access to the SSL_CTX struct, for
example to load the windows cert store
2019-09-18 15:10:15 +02:00
4ab9270660 Use 'poll' as default instead of select (Fix #215) 2019-09-18 08:42:18 -04:00
d599a36c2a Format code 2019-09-16 17:48:17 -04:00
0c293887d0 Fixed problem with redirect 2019-09-15 09:15:21 -04:00
7e92ffec48 Added new Client::Get variant that combines a ContentReceiver with a new ResponseHandler
While trying to implement streaming of internet radio, where a ContentReceiver is needed to handle the audio data, I had the problem, that important information about the stream data is part of the HTTP header (e.g. size of audio chunks between meta data), so I added a ResponseHandler and a new Get variant, to gain access to the header before handling the first chunk of data.

The ResponseHandler can abort the request by returning false, in the same way as the ContentReceiver.

A test case was also added.
2019-09-14 14:55:12 +02:00
c9238434e1 Added redirect support (Fix #211) 2019-09-06 18:07:35 -04:00
e2babf315c Fixed build error on Windows 2019-09-05 13:22:44 -04:00
c434d555bb Fixed problem caused by former changes 2019-09-03 17:19:58 -04:00
80f040cf69 Fix #209 2019-09-03 17:10:04 -04:00
037b4fc789 Fixed problem with keep-alive on client 2019-09-03 17:05:10 -04:00
a782d1b609 Added OpenSSL version check. (Currently commented out) 2019-08-31 20:15:50 -04:00
1e82359329 Keep-alive connection support on client (Fix #36) 2019-08-31 17:52:24 -04:00
a4160e6ac1 Fix #212 2019-08-25 17:19:20 -04:00
bdbfc6cfe7 Fix #210 2019-08-25 16:49:10 -04:00
22615f9682 Fix #203 2019-08-07 06:34:24 -04:00
64991a560a Fixed problems with Win32 build 2019-08-07 15:21:22 +09:00
d7bb402ca7 Format code 2019-08-06 18:12:05 +09:00
d58deddbcc Fixed #198 2019-08-06 18:10:41 +09:00
3629f87627 Fixed thread pool problem. 2019-08-06 08:31:43 +09:00
2823a94fc1 Added 'resource_releaser' for content provider 2019-08-05 09:40:23 +09:00
f4aaba6362 Fixed warnings on Windows 2019-08-03 20:43:15 -04:00
c899462e75 Added 'Content-Range' header for single range request 2019-08-03 22:12:24 +09:00
9785cd47f2 Thread pool support 2019-08-03 16:39:39 +09:00
579ff1a0a6 new_task_queue support 2019-08-03 13:15:05 +09:00
47312e6df9 Added TaskQueue interface 2019-08-03 12:11:22 +09:00
66b81a1497 Code cleanup 2019-08-03 10:47:48 +09:00
9d7b717504 Range header support and redesign of content provider interface 2019-08-03 03:28:39 +09:00
58f72bc8b6 Code cleanup 2019-07-29 14:24:40 -04:00
4c58b91e40 Added additonal status messages 2019-07-29 09:47:50 -04:00
06b3dee5aa Code cleanup 2019-07-28 19:12:44 -04:00
d15df874b3 Code cleanup 2019-07-28 07:52:57 -04:00
f40de531ab Fix #196 2019-07-26 14:39:09 -04:00
cb11d9412e Fixed connection end problem with HTTP/1.0 client 2019-07-24 06:53:48 -04:00
34651ef89b Fix #121 2019-07-23 09:53:44 -04:00
dd20e4d418 Fixed build errors 2019-07-22 06:58:05 -04:00
7267b3f3e2 Write error handling 2019-07-21 21:34:49 -04:00
4c18ac2b18 Added locking_callback for OpenSSL versions prior to 1.1.0 2019-07-19 17:03:47 -04:00
eaafa5d55c Fix #127 2019-07-19 11:38:06 -04:00
3d1ae3a3af Code cleanup 2019-07-17 23:50:47 -04:00
6f663028e9 Fix #139. Content receiver support 2019-07-17 22:00:18 -04:00
31cdadc4b1 Added check code to compress and decompress 2019-07-17 19:00:35 -04:00
849add5887 Code cleanup 2019-07-17 15:09:41 -04:00