Commit graph

624 commits

Author SHA1 Message Date
eidheim
0f8f1f515b Related to #150: added LIBRESSL_VERSION_NUMBER check to BIO_new_mem_buf in order to support libressl 2018-08-26 22:30:28 +02:00
eidheim
b8de3ae504 Removed unnecessary check 2018-08-01 09:24:12 +02:00
eidheim
f39f21b56f Minor cleanups 2018-07-29 22:27:10 +02:00
eidheim
1ae9f69b1f Added missing include 2018-07-23 21:35:16 +02:00
eidheim
56b1df1ee5 Moved SimpleWeb::string_view to utility.hpp, and made use of string_view in Server::Response::write 2018-07-12 08:43:07 +02:00
eidheim
0ae69bffb1 All handlers in send queue is now called on error 2018-07-11 08:41:33 +02:00
eidheim
ebe170b4b3 Minor parameter rename, added underscore at end due to move 2018-07-10 17:42:48 +02:00
eidheim
c5cfa5b86c Added underscore on constructor parameters that are moved 2018-07-10 17:29:27 +02:00
eidheim
69b34bc7c2 Merge branch 'sse' of https://gitlab.com/eidheim/Simple-Web-Server 2018-07-10 12:46:53 +02:00
eidheim
cc234506b1 Completed support for multiple sequential Server::Response::send operations 2018-07-10 12:39:15 +02:00
eidheim
8b75c14aef Fixes #231: added checks to getline calls in parse functions so that they can be used outside the Server/Client classes 2018-07-04 20:47:47 +02:00
Ole Christian Eidheim
5686165f35 Removed build status from README.md. Using GitLab badge instead. 2018-06-16 16:26:02 +00:00
Ole Christian Eidheim
d865676a1b Updated juCi++ link 2018-06-12 09:24:55 +00:00
eidheim
a99f97996a Updated README.md 2018-06-09 22:32:45 +02:00
eidheim
b2cde3f02f Migrated to GitLab 2018-06-09 19:29:33 +02:00
Alex Fraser
6b91839cb6 Allow calling Response::send multiple times: copy the buffer before async_write 2018-06-03 12:10:18 +02:00
eidheim
d59b7c234c Optimized string() functions 2018-06-02 20:21:52 +02:00
eidheim
5416b2736b Updated license year 2018-05-27 11:57:39 +02:00
eidheim
f52c8a020b Cleanup of start and its related functions. Also removed unused lambda captures. 2018-05-05 10:05:11 +02:00
Thomas Karlsson
3ba786f585 Splitted the start function into a two in order to access the bound port
This is relevant if binding on a random free port (0) and since start never
returns... we need a split function to safely get it
2018-04-19 15:36:38 +02:00
eidheim
bd9c1192bb Changed string view related __cplusplus check to > 201402L, and reverted additional travis tests to reduce the CI duration 2018-03-29 10:45:10 +02:00
Seth Hamilton
7bf465362a simplified ifdef 2018-03-26 10:27:23 -04:00
Seth Hamilton
1d7b24e13e removed superflous boost/string_ref include 2018-03-01 11:00:38 -05:00
Seth Hamilton
90e5047b41 added two test with C++17 and USE_STANDALONE_ASIO ON/OFF 2018-03-01 09:57:34 -05:00
Seth Hamilton
762d1cf644 added two test with C++17 and USE_STANDALONE_ASIO ON/OFF 2018-03-01 09:47:44 -05:00
Seth Hamilton
b1baa1f3e5 now with more define tests 2018-03-01 09:38:22 -05:00
Seth Hamilton
f1210436b8 now with more define tests 2018-03-01 09:29:36 -05:00
Seth Hamilton
2a361bfda6 c++17 string_view support 2018-02-27 09:54:51 -05:00
Seth Hamilton
5324abea8c c++17 string_view support 2018-02-27 09:52:27 -05:00
Seth Hamilton
1985c5941d support for C++17 string_view 2018-02-26 10:59:59 -05:00
eidheim
1056bd2e70 Now adds port to host request header field value only if the port is non-default 2018-02-14 12:47:58 +01:00
Sahin Habermann
760571083c Include Port in Host 2018-02-08 00:40:27 +01:00
eidheim
6381ee1d31 Fixes #146: added comment to server.on_error examples regarding connection timeouts 2018-01-25 10:24:46 +01:00
eidheim
fb4a17d5ed Fixes #203: header field values are now correctly parsed even with more than 1 space after : 2018-01-24 13:04:06 +01:00
taivop
231e5f0065 Update CMake minimum required version to 3.0 (#191) 2018-01-08 13:41:12 +02:00
eidheim
d0a0ca2941 Resolves #184: further fixes to Percent::encode 2018-01-03 18:38:39 +01:00
eidheim
bbbf350693 Fixes Percent::encode issue mentioned in #184 2018-01-03 18:11:23 +01:00
Addy
aa030950bb removed unused variable; 2017-12-21 14:49:57 -05:00
eidheim
1552cdc11a Corrected OpenSSL version check. Related to https://github.com/eidheim/Simple-WebSocket-Server/issues/91 2017-12-11 18:41:30 +01:00
eidheim
f307f40ba5 Updated license year 2017-12-09 10:05:18 +01:00
eidheim
b6261bfc31 Fixes #169: time point when a request header is read is now stored in Server::Request::header_read_time 2017-11-25 20:40:40 +01:00
eidheim
de23d679c4 Slight optimisation of status_code functions 2017-11-25 12:10:45 +01:00
eidheim
c126eb76b9 Added chunked transfer tests 2017-11-19 18:03:28 +01:00
eidheim
4f67773a25 Client can now send chunked transfer encoded content 2017-11-19 18:03:28 +01:00
eidheim
0c8da107a6 Rename ServerBase::read_request_and_content to ServerBase::read, and ServerBase::write_response to ServerBase::write 2017-11-19 18:03:28 +01:00
eidheim
101a471ca9 Fixes #173: added server support for chunked transfer encoded requests 2017-11-19 18:03:28 +01:00
eidheim
aa974d7291 Applied newer clang-format on http(s)_examples 2017-11-18 09:58:48 +01:00
eidheim
6d1577ecaa chunked transfer encoding cleanup 2017-11-18 09:55:24 +01:00
eidheim
5fc5308a8b Fixes #174: variable length no longer uninitialized 2017-11-18 07:44:26 +01:00
eidheim
af90d7598f Simplification of Client::read_chunked 2017-11-16 07:46:23 +01:00