Commit graph

630 commits

Author SHA1 Message Date
eidheim
66b6be499d Client now supports event streams with \r\n line endings in addition to regular \n 2019-07-10 15:08:24 +02:00
eidheim
7c44f73ec5 Fixes #269 : Replaced ssize_t with std::streamsize 2019-07-03 20:28:58 +02:00
eidheim
e1d1404ff7 Fixes #268 : Added mutex.hpp to cmake's install function 2019-07-03 20:25:13 +02:00
eidheim
fc43fc362d Cleanup of include guards 2019-06-25 11:56:21 +02:00
eidheim
a743915d72 Made use of clang's Thread Safety Analysis 2019-06-25 11:29:36 +02:00
eidheim
39fb720aa9 Minor fix of HeaderEndMatch 2019-06-25 08:50:40 +02:00
eidheim
d9d554b1b5 Client: added support for non-standard line endings in response status and header 2019-06-24 19:48:11 +02:00
eidheim
f1327d3bc3 Renamed HAVE_ASIO to ASIO_PATH 2019-06-24 10:20:32 +02:00
eidheim
b0bd7df473 Cleanup of merge request 239 , and reverted changes where examples are not built when standalone asio is used 2019-06-24 10:17:06 +02:00
eidheim
b06e7cfcd2 Merge https://gitlab.com/davidwed/Simple-Web-Server 2019-06-24 10:07:43 +02:00
eidheim
97983a0ec0 Updated feature section 2019-06-24 08:41:37 +02:00
eidheim
e75f162d8b Server: improved chunked transfer code 2019-06-23 20:28:46 +02:00
eidheim
31e6819b42 Added SimpleWeb::error, and simplified request size checks on server 2019-06-23 20:27:54 +02:00
eidheim
1a56f4810e Resolve g++ compilation error when using standalone asio 2019-06-23 13:05:26 +02:00
eidheim
ec240ab432 Added missing namespace for standalone asio 2019-06-23 12:56:44 +02:00
eidheim
18808121ed Added missing include 2019-06-23 12:46:21 +02:00
eidheim
b1d9476ff1 Client: added support for server-sent events, and improved the chunked transfer code. Also some cleanup of especially the client code, and added a few additional tests. 2019-06-23 12:41:32 +02:00
David Wedderwille
e606f7a4e7 cmake: fixes compile error when "USE_STANDALONE_ASIO" is set.
Signed-off-by: David Wedderwille <davidwe@posteo.de>
2019-06-21 22:08:51 +02:00
eidheim
6097d86cb5 Another fix related to #246 : correctly removed connection from connections list when connection should be closed 2019-06-21 19:27:49 +02:00
eidheim
dbd2287418 Further fix of #246 : corrected use of response streambuf after reconnect (wrong response object was used in Session::callback). Also closes connection when appropriate, and simplified Session::callback. 2019-06-21 19:08:43 +02:00
eidheim
a316310815 Fixes #246 : client's response object is now reset when attempting to resend request on read error 2019-06-21 14:52:17 +02:00
eidheim
c2a10cc72a Fixed indentation in last commit 2019-06-19 14:57:01 +02:00
David Wedderwille
a73ce8b148 add asio_compatibility.hpp to the destination directory 2019-06-19 12:07:43 +00:00
eidheim
45d39e3c18 Merge branch 'new_asio' of https://gitlab.com/eidheim/Simple-Web-Server 2019-06-14 20:14:56 +02:00
eidheim
1f699fc304 Related to #246 : added test where multiple clients sends posts concurrently to a server 2019-06-13 19:37:43 +02:00
eidheim
3fcf628657 Minor cleanup in send_from_queue 2019-06-03 12:12:33 +02:00
eidheim
045d4fce8d Remove SimpleWeb::post and added std::forward to SimpleWeb::get_socket_executor 2019-06-03 10:17:38 +02:00
eidheim
9ca86827d9 Unlocks send_queue_lock before calling callbacks in case send_from_queue is invoked in callbacks 2019-05-28 13:07:20 +02:00
eidheim
514a135e0c Improved set_timeout(): no longer keeps connection alive longer than necessary. 2019-05-27 21:13:28 +02:00
eidheim
1b5f062678 New asio: removed use of strand, and fixed steady_timer constructor call 2019-05-22 14:00:06 +02:00
eidheim
44c2f733dc New asio api: removed unnecessary SimpleWeb::timer_expires_after 2019-05-20 18:39:54 +02:00
eidheim
d6985ed62e Fixes #261: SimpleWeb::status_code(const std::string &) now only regards the status code number when searching for status code enum, and can also return undefined enums that can be cast to an integer value 2019-04-29 13:30:22 +02:00
eidheim
5087f5d3df Added support for new asio api 2019-04-10 11:07:33 +02:00
eidheim
ded57636dd Further improvements to the ASSERT-macro: replaced fprintf with std::cerr and added std::-prefix to abort 2019-03-28 10:56:16 +01:00
eidheim
e716cd9764 Improved ASSERT macro, and renamed tests/check.hpp to tests/assert.hpp 2019-03-23 13:46:31 +01:00
eidheim
7282a342b9 Merge branch 'tests_in_release' of https://gitlab.com/AndreyNautilus/Simple-Web-Server 2019-03-23 12:16:38 +01:00
eidheim
c14705c62b Replaced unique_lock with lock_guard where possible 2019-03-08 12:54:56 +01:00
eidheim
e9877639b2 Fixes #255: Made regex_orderable::str public 2019-03-05 10:00:38 +01:00
eidheim
02d1c9c198 Merge branch 'use_name_and_command_tags_in_add_test_function' of https://gitlab.com/AndreyNautilus/Simple-Web-Server 2019-02-14 19:38:15 +01:00
Andrey Potapov
5db5031558 done 2019-02-13 16:29:27 +01:00
Frachop
e70a3c40a3 make SimpleWeb::Server::Request methods const 2019-02-12 23:54:36 +01:00
Andrey Potapov
4f66df49a0 use NAME and COMMAND tags in add_test function 2019-02-08 15:30:42 +00:00
eidheim
5e8b99c02a Server now accepts IPv6 connections when Config::address is empty 2019-01-10 13:12:26 +01:00
eidheim
b7e5a37da4 Removed possibly unnecessary is_tcp_fast_open_supported-function 2019-01-10 12:57:38 +01:00
gavin.smith@coralbay.tv
0eb6269c70 Linux server-side TFO: Clean-up upon code review 2019-01-03 22:06:59 +00:00
gavin.smith@coralbay.tv
4d7f3729c3 Fixed compiler error. 2018-12-30 00:40:42 +00:00
gavin.smith@coralbay.tv
4328286e32 Fixed compiler error. 2018-12-30 00:33:32 +00:00
gavin.smith@coralbay.tv
7d43617993 Added support for TCP Fast Open in server when using Linux. 2018-12-30 00:25:11 +00:00
Ole Christian Eidheim
1654b3cd42 Merge branch 'patch-1' into 'master'
Update README.md, add links for examples

See merge request eidheim/Simple-Web-Server!232
2018-11-30 09:11:38 +00:00
NeroBurner
22a2b64a0e Update README.md, add links for examples 2018-11-29 21:33:02 +00:00