yhirose
8f3dbf7f21
Code cleanup
2019-11-27 08:01:25 -05:00
yhirose
924a557fa3
Changed to use 'using' instead of 'typedef'
2019-11-27 07:03:17 -05:00
yhirose
d8da740597
Fix #270
2019-11-26 08:48:17 -05:00
yhirose
d45676b064
Added NoThread task queue
2019-11-25 13:00:37 -05:00
Hirose Family
94d13e88a5
Fixed regex problem with Apple LLVM version 8.0.0
2019-11-03 19:27:12 -05:00
Johan Jansen
a62a48a7b5
Modernize some additional code
2019-10-31 21:49:04 +01:00
Johan Jansen
c652919954
Do not use shared_ptr where not required
2019-10-31 21:48:48 +01:00
Johan Jansen
58753ba33c
Fix some virtual override warnings
2019-10-31 21:38:37 +01:00
yhirose
5706828d2c
Replace C-style arrays and fix static-code analysis warnings
2019-10-31 21:32:07 +01:00
yhirose
e743b8cd57
Fix #254
2019-10-30 08:21:59 -04:00
yhirose
9d57899352
Simplified ContentReceiver interface
2019-10-27 23:38:56 -04:00
yhirose
d03937e144
Content receiver support on server
2019-10-27 23:20:56 -04:00
yhirose
8fb37a449d
Fix #251
2019-10-27 17:27:57 -04:00
yhirose
f0b1b5dbfd
Added set_read_timeout. Fix #248 .
2019-10-27 14:57:22 -04:00
yhirose
5f32c424c2
Content provider support on client
2019-10-25 18:39:04 -04:00
yhirose
f0683f2301
Fixed build errors
2019-10-25 13:11:49 -04:00
yhirose
0d527e2b83
Code formatting
2019-10-25 12:09:26 -04:00
yhirose
bea3ebd7af
Added 'compress' option to POST, PUT and PATCH.
2019-10-25 11:46:12 -04:00
yhirose
380f725713
Code format
2019-10-24 22:20:42 -04:00
Bastien Durel
d1abf96581
html files may be .htm
2019-10-23 09:52:21 +02:00
yhirose
7a3abd2768
Merge pull request #243 from Sil3ntStorm/patch1
...
Allow use of OpenSSL 1.1.1, fix compile errors
2019-10-20 10:12:14 -04:00
Aaron Albers
89e1e9b8fe
Added bind_to_port()
...
- This compliments the existing `bind_to_any_port()`
where you can determine if the bind succeeded prior
to calling `listen_after_bind()` but allows you to
specify the port.
2019-10-19 10:41:19 -06:00
Sil3ntStorm
98d16eb836
Allow use of OpenSSL 1.1.1, fix compile errors
2019-10-19 16:40:06 +02:00
yhirose
dcdb0d047b
Fixed PRI request problem
2019-10-03 13:44:18 -04:00
yhirose
1f86e41d97
Changed back to select as default
2019-10-03 13:44:18 -04:00
Johan Jansen
f23f9a06a9
Allow configuration to be overriden without source editing
2019-09-30 22:00:17 +02:00
Alin Gherman
224119a60a
Retry in case of too many sockets opened instead of stopping the server.
2019-09-30 11:48:02 +02:00
yhirose
c02849e269
Removed CPPHTTPLIB_USE_POLL, added CPPHTTPLIB_USE_SELECT
2019-09-29 19:43:22 -04:00
yhirose
71979b1e88
Merge pull request #226 from Zefz/mingw-compile-fix
...
Fix compilation on Mingw-64
2019-09-27 17:29:33 -04:00
zefz
b14b7b0f8f
Fix compilation on Mingw-64
2019-09-27 20:23:16 +02:00
Tang Huaizhe
9dbe0d855c
Fix compile error in android ndk
2019-09-27 13:32:23 +08:00
Johan Jansen
94fc229c44
Add missing explicit const_cast
2019-09-26 22:20:33 +02:00
Johan Jansen
a7052cba22
Fix several -Wold-style-cast warnings in Clang-9
2019-09-26 22:03:18 +02:00
yhirose
c946eb7699
Fixed warnings on Windows
2019-09-26 08:13:20 -04:00
PolloLoco
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
yhirose
4ab9270660
Use 'poll' as default instead of select ( Fix #215 )
2019-09-18 08:42:18 -04:00
yhirose
d599a36c2a
Format code
2019-09-16 17:48:17 -04:00
yhirose
0c293887d0
Fixed problem with redirect
2019-09-15 09:15:21 -04:00
Steffen Schuemann
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
yhirose
c9238434e1
Added redirect support ( Fix #211 )
2019-09-06 18:07:35 -04:00
yhirose
e2babf315c
Fixed build error on Windows
2019-09-05 13:22:44 -04:00
yhirose
c434d555bb
Fixed problem caused by former changes
2019-09-03 17:19:58 -04:00
yhirose
80f040cf69
Fix #209
2019-09-03 17:10:04 -04:00
yhirose
037b4fc789
Fixed problem with keep-alive on client
2019-09-03 17:05:10 -04:00
yhirose
a782d1b609
Added OpenSSL version check. (Currently commented out)
2019-08-31 20:15:50 -04:00
yhirose
1e82359329
Keep-alive connection support on client ( Fix #36 )
2019-08-31 17:52:24 -04:00
yhirose
a4160e6ac1
Fix #212
2019-08-25 17:19:20 -04:00
yhirose
bdbfc6cfe7
Fix #210
2019-08-25 16:49:10 -04:00
yhirose
22615f9682
Fix #203
2019-08-07 06:34:24 -04:00
yhirose
64991a560a
Fixed problems with Win32 build
2019-08-07 15:21:22 +09:00
yhirose
d7bb402ca7
Format code
2019-08-06 18:12:05 +09:00
yhirose
d58deddbcc
Fixed #198
2019-08-06 18:10:41 +09:00
yhirose
3629f87627
Fixed thread pool problem.
2019-08-06 08:31:43 +09:00
yhirose
2823a94fc1
Added 'resource_releaser' for content provider
2019-08-05 09:40:23 +09:00
yhirose
f4aaba6362
Fixed warnings on Windows
2019-08-03 20:43:15 -04:00
yhirose
c899462e75
Added 'Content-Range' header for single range request
2019-08-03 22:12:24 +09:00
yhirose
9785cd47f2
Thread pool support
2019-08-03 16:39:39 +09:00
yhirose
579ff1a0a6
new_task_queue support
2019-08-03 13:15:05 +09:00
yhirose
47312e6df9
Added TaskQueue interface
2019-08-03 12:11:22 +09:00
yhirose
66b81a1497
Code cleanup
2019-08-03 10:47:48 +09:00
yhirose
9d7b717504
Range header support and redesign of content provider interface
2019-08-03 03:28:39 +09:00
yhirose
58f72bc8b6
Code cleanup
2019-07-29 14:24:40 -04:00
yhirose
4c58b91e40
Added additonal status messages
2019-07-29 09:47:50 -04:00
yhirose
06b3dee5aa
Code cleanup
2019-07-28 19:12:44 -04:00
yhirose
d15df874b3
Code cleanup
2019-07-28 07:52:57 -04:00
yhirose
f40de531ab
Fix #196
2019-07-26 14:39:09 -04:00
yhirose
cb11d9412e
Fixed connection end problem with HTTP/1.0 client
2019-07-24 06:53:48 -04:00
yhirose
34651ef89b
Fix #121
2019-07-23 09:53:44 -04:00
yhirose
dd20e4d418
Fixed build errors
2019-07-22 06:58:05 -04:00
yhirose
7267b3f3e2
Write error handling
2019-07-21 21:34:49 -04:00
yhirose
4c18ac2b18
Added locking_callback for OpenSSL versions prior to 1.1.0
2019-07-19 17:03:47 -04:00
yhirose
eaafa5d55c
Fix #127
2019-07-19 11:38:06 -04:00
yhirose
3d1ae3a3af
Code cleanup
2019-07-17 23:50:47 -04:00
yhirose
6f663028e9
Fix #139 . Content receiver support
2019-07-17 22:00:18 -04:00
yhirose
31cdadc4b1
Added check code to compress and decompress
2019-07-17 19:00:35 -04:00
yhirose
849add5887
Code cleanup
2019-07-17 15:09:41 -04:00
yhirose
fccb84f5e8
Refactoring for reading content
2019-07-17 08:56:49 -04:00
Jasper van de Ven
2fdc41c323
Made svr_sock_ and is_running_ variables atomic
2019-07-05 11:03:23 +02:00
yhirose
74e9a0d17e
Fix #182
2019-07-03 10:52:24 -04:00
yhirose
bb537d93fe
Added CPPHTTPLIB_RECV_BUFSIZ
2019-06-29 20:39:18 -04:00
yhirose
bde3fd9f78
Improved performance of read_content_without_length
2019-06-29 20:25:16 -04:00
yhirose
2aa35d5f53
Fix #179
2019-06-28 12:08:47 -04:00
yhirose
5377c86da9
clangformat
2019-06-20 19:17:59 -04:00
yhirose
1981e0ccad
Add SSL object on Request
2019-06-20 18:52:28 -04:00
yhirose
866b6967a0
Fixed memory leak
2019-06-20 17:37:18 -04:00
yhirose
6d74fa86be
Fix #164
2019-06-20 17:11:44 -04:00
yhirose
b5c79bf146
Fix #160
2019-06-20 15:00:22 -04:00
yhirose
4f4e6f2140
Use 'inline'
2019-06-20 12:43:17 -04:00
yhirose
a28e3620a2
Fix #173
2019-06-20 11:45:11 -04:00
yhirose
4a857511e2
fix #168
2019-06-17 11:33:43 -04:00
yhirose
8d12e0d8f4
Simplified code
2019-06-11 21:39:35 -04:00
yhirose
07d9843b91
clangformat
2019-06-11 20:57:02 -04:00
yhirose
92f08b54c4
Merge pull request #162 from PixlRainbow/master
...
client certificates support
2019-06-11 20:53:56 -04:00
PixlRainbow
60e0286cfb
rename certificate parameter to reduce confusion
2019-06-06 23:52:33 +08:00
PixlRainbow
628b1115ea
remove requirement for trusted_cert_path
2019-06-06 23:34:24 +08:00
PixlRainbow
57f61bf80e
client-side support for client certificates
2019-06-06 01:16:47 +08:00
PixlRainbow
6bb05c5483
support certificates signed by intermediate CA
2019-06-05 19:44:37 +08:00
yhirose
6f207497de
Fixed #150
2019-06-04 22:53:37 -04:00
PixlRainbow
d630c116df
server-side support for client certificates
2019-06-05 02:21:37 +08:00
Yuji Hirose
48af26e332
Fixed resource leaks
2019-06-03 11:06:59 -04:00