Commit graph

165 commits

Author SHA1 Message Date
eidheim
d59b7c234c Optimized string() functions 2018-06-02 20:21:52 +02:00
eidheim
f52c8a020b Cleanup of start and its related functions. Also removed unused lambda captures. 2018-05-05 10:05:11 +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
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
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
4f67773a25 Client can now send chunked transfer encoded content 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
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
k1988
345eb11c72 fix lost last chunk when there is two chunks in one read 2017-11-16 10:39:05 +08:00
eidheim
bc4c49134d Removed unnecessary cstddef includes 2017-09-30 12:08:53 +02:00
eidheim
99cc6d9ad3 Merge branch 'mini_refactoring' of https://github.com/knowledge4igor/Simple-Web-Server 2017-09-30 12:06:15 +02:00
eidheim
efac6cd8c4 Client's chunked transfer: no longer moves empty streambuf 2017-09-27 13:34:22 +02:00
knowledge4igor
2cfaa0e2a0 Mini refactoring: using std::size_t and std::numeric_limits 2017-09-25 23:33:31 +03:00
eidheim
69f945f686 Fixes #155: added max streambuf config items to limit large requests/responses if needed 2017-09-25 09:58:50 +02:00
knowledge4igor
3ab6cd8a39 Change 'typedef' constructions to type aliases 2017-09-05 01:32:21 +03:00
eidheim
f7ddeeda82 Completed PR #153: using steady timer instead of deadline timer to remove boost dependency when using standalone asio 2017-08-29 09:29:23 +02:00
eidheim
42de0bea13 Client: added try catch when parsing length of chunked content 2017-08-12 15:37:32 +02:00
eidheim
64bd58e5da Fixes #149: added and resolved -Wsign-conversion warnings 2017-08-12 15:36:28 +02:00
eidheim
ea2b0f4a80 Minor comment change to string() functions 2017-08-01 07:58:19 +02:00
eidheim
7c2f714949 noexcept cleanup 2017-07-22 13:33:32 +02:00
eidheim
7dd2d2108a Added noexcept 2017-07-22 12:50:40 +02:00
eidheim
474fab90f3 Renamed ScopesContinue to ScopeRunner, and some related cleanup 2017-07-20 17:21:19 +02:00
eidheim
70e8c3104c Renamed ContinueScopes to ScopesContinue 2017-07-20 11:31:58 +02:00
eidheim
35f835a67b Cancel handlers feature: replaced readers-writer lock with a spinlock implementation 2017-07-20 10:04:05 +02:00
eidheim
b89f5635a5 Moved request and response message parsing to utility.hpp 2017-07-19 08:03:23 +02:00
eidheim
88177647b8 Client: added connections_mutex unlocks when performing reconnect 2017-07-15 15:52:22 +02:00
eidheim
35ea8a950e Client: now lets socket destructor close itself 2017-07-15 10:57:12 +02:00
eidheim
eeaf66cf2c Fixes #142: a new socket is created when a https connection is reconnected, since a second SSL handshake cannot be made on the same socket. Also now removing failed connections from the connections collection. 2017-07-15 08:45:06 +02:00
eidheim
3541dd7879 ::stop now closes connections even though internal io_service is used 2017-07-12 10:03:52 +02:00
eidheim
c03e378e69 Comments addition and cleanup 2017-07-10 11:12:10 +02:00
eidheim
d8b8716a17 Session and Connection cleanup 2017-07-10 10:51:24 +02:00
eidheim
dfd7895328 Shared mutex is no longer used when using internal io_service 2017-07-09 09:13:03 +02:00
eidheim
6c2c8d680b No longer stores pointer to Server/Client instance in Session objects. Some other cleanups as well. 2017-07-08 22:21:29 +02:00
eidheim
f3f527467f Now close connections when Server::stop is called 2017-07-08 11:47:05 +02:00
eidheim
490e33e2d1 Client::close renamed to Client::stop 2017-07-07 23:35:14 +02:00
eidheim
06d3c701e1 Fixed io_test (out of stack?), also fixed concurrent sync requests count on request error. 2017-07-07 19:37:20 +02:00
eidheim
fd764d908c Synchronous client request calls is now safe to use concurrently 2017-07-07 17:16:53 +02:00
eidheim
9b5063f422 Replaced Server/Client::shared_from_this with asio callback checks if the Server/Client has been destroyed. Also added SharedMutex to utility.hpp. 2017-07-07 11:25:06 +02:00
eidheim
0f2ab616ec Reverted namespace asio = asio for standalone asio because of gcc error 2017-07-05 14:32:43 +02:00
eidheim
8862c62b60 Added SimpleWeb::asio namespace when using standalone asio as well 2017-07-05 14:32:42 +02:00
eidheim
d9416c2566 Added Client::close, and Client::connections and Client::connections_mutex are no longer shared_ptrs 2017-07-04 23:25:30 +02:00
eidheim
68f1e8413a Reverted resource/response function parameter types shared_ptr& to shared_ptr. No real value added here, just more complicated code. Compiler might also optimise the now const lambda captures. 2017-07-04 12:04:07 +02:00