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
|
53c9ff64c0
|
Corrected on_error's error_code parameter
|
2017-07-05 17:42:18 +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
|
16aa958903
|
Server::Session::timer is now of type unique_ptr instead of shared_ptr
|
2017-07-04 18:10:58 +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 |
|
eidheim
|
0662cbdfb7
|
Added timeout to Server::Response::send, and some cleanup
|
2017-07-04 11:21:31 +02:00 |
|
eidheim
|
cc1a8fc614
|
The function Server::send was moved to Server::Response::send
|
2017-07-04 10:14:58 +02:00 |
|
eidheim
|
a69e32290f
|
Server::send response parameter changed to const. Some cleanup of examples related to this.
|
2017-07-04 09:17:36 +02:00 |
|
eidheim
|
c934c9aefe
|
Timeout timers and Client's connection close cleanup
|
2017-07-04 08:51:15 +02:00 |
|
eidheim
|
30f4f94a03
|
ServerBase now derives from and use std::enable_shared_from_this
|
2017-07-03 18:00:49 +02:00 |
|
eidheim
|
1992bbb4b4
|
Preparation for std::enable_shared_from_this: Server- and Client-constructors are no longer public, use ::create instead
|
2017-07-03 15:02:35 +02:00 |
|
eidheim
|
80ab651fca
|
Removed deprecated functions
|
2017-07-03 14:31:22 +02:00 |
|
eidheim
|
b3a1d48c0a
|
Callback shared_ptr parameters are now shared_ptr&
|
2017-07-03 14:25:48 +02:00 |
|
eidheim
|
0c9cb000b4
|
Server::Request::path is split into path and query_string
|
2017-07-03 14:25:48 +02:00 |
|
eidheim
|
d1798396ac
|
Config::thread_pool_size is no longer checked if io_service is set (that is, when external io_service is used) before calling start
|
2017-07-03 10:22:44 +02:00 |
|
eidheim
|
e50d2fc63a
|
Added .clang-format file and applied style to source files
|
2017-06-26 15:23:29 +02:00 |
|
eidheim
|
bf379ebcba
|
Server::Response::write convenience functions no longer write Content-Length if close_connection_after_response is set. Also added some doxygen comments
|
2017-06-26 07:16:50 +02:00 |
|
eidheim
|
98d9617244
|
Added QueryString class with create and parse functions to utility.hpp
|
2017-06-25 16:43:49 +02:00 |
|
eidheim
|
48d74a974a
|
Server::Response::write convenience functions now always add Content-Length header field if it does not exists and if chunked transfer encoding is not used
|
2017-06-25 09:21:00 +02:00 |
|
eidheim
|
985809791c
|
Resolved unambiguous Server::Response::write() functions
|
2017-06-25 08:46:50 +02:00 |
|
eidheim
|
c9c6ee3d98
|
Removed unnecessary includes
|
2017-06-24 10:46:42 +02:00 |
|
eidheim
|
850dcd6601
|
Cleanup of examples
|
2017-06-23 10:28:29 +02:00 |
|
eidheim
|
8ec36d19fd
|
Changed some parameters from std::iostream to std::istream in Client and Server
|
2017-06-23 07:00:16 +02:00 |
|
eidheim
|
337ee19cef
|
Correction of Server::Response::write
|
2017-06-22 22:23:07 +02:00 |
|
eidheim
|
6b7fd993cf
|
Added convenience function Client::Response::Content::string()
|
2017-06-22 22:00:59 +02:00 |
|
eidheim
|
4efdc095bd
|
Added convenience write functions to Server::response
|
2017-06-22 21:46:01 +02:00 |
|
eidheim
|
ba4eec7ebe
|
Created Utility.hpp and moved some code into this file. Also improved parse_query_string.
|
2017-06-22 12:08:56 +02:00 |
|
eidheim
|
fae8e07faa
|
Removed dependency of boost::string_ref if USE_STANDALONE_ASIO is defined
|
2017-06-18 08:11:27 +02:00 |
|
eidheim
|
83691c6e9a
|
Fixes #129: linking issues related to case_insensitive_equal and make_error_code
|
2017-06-10 15:03:27 +02:00 |
|
eidheim
|
111aeeb7fc
|
Renamed case insensitive function and classes, and added test for case_insensitive_equal
|
2017-06-10 11:17:49 +02:00 |
|
eidheim
|
ec63c4345e
|
Cleanup of #127: using standalone asio.
|
2017-06-07 19:27:34 +02:00 |
|
Sébastien Huss
|
d50bcabf8e
|
added Support for NO_BOOST
|
2017-06-05 07:39:58 +02:00 |
|
eidheim
|
4469de156b
|
Fixed g++ error in Server::Request::parse_query_string
|
2017-05-27 09:44:00 +02:00 |
|
eidheim
|
550bbfe9d7
|
Finished query string parsing implementation (PR #109)
|
2017-05-27 09:07:13 +02:00 |
|
eidheim
|
e68488a157
|
Merge branch 'master' of https://github.com/harella1/Simple-Web-Server
|
2017-05-26 11:36:41 +02:00 |
|
Vladimir Venediktov
|
cfafbcbc7d
|
Added support for request header Connection: keep-alive (see #123)
|
2017-05-06 09:05:37 +02:00 |
|
ProTrack
|
e585a7a5bc
|
If query string is present then cut it from the reqeust path so find resource won't fail
|
2017-02-27 10:13:33 +02:00 |
|
David Siroky
|
50ce7510ef
|
remove locale dependent stof()
e.g. stof("1.1") might return 1.0 if the locale decimal delimiter is ","
|
2017-02-14 10:16:44 +01:00 |
|
ProTrack
|
d554c13db5
|
Travis CI build failed
|
2017-02-05 16:19:42 +02:00 |
|
ProTrack
|
a4dd2e6444
|
Added query string parsing and member to request
|
2017-02-05 16:01:00 +02:00 |
|
eidheim
|
de560e8b48
|
Renamed close_connection_after_send to close_connection_after_response, and changed the documentation of this variable slightly
|
2017-01-24 14:18:41 +01:00 |
|
Patrick Boettcher
|
600fbe39b2
|
Possible implementation for fixing #106
|
2017-01-24 13:23:33 +01:00 |
|
Wei Dong
|
19627bbe6b
|
Fixed Boost.Regex workaround in regex_orderable. Fixes #100
|
2017-01-11 11:37:48 +01:00 |
|
eidheim
|
f5e65bf422
|
Removed unnecessary public:
|
2017-01-02 17:19:59 +01:00 |
|
eidheim
|
fa8c381a4f
|
Added warning to Server::resource
|
2017-01-02 12:52:37 +01:00 |
|
eidheim
|
8cdebfb612
|
Code simplification: got rid of opt_resource at minimal cost. Now utilise map instead of unordered map in resource and default_resource
|
2017-01-02 10:58:41 +01:00 |
|
eidheim
|
bfcb325472
|
Added on_upgrade for cases where one wants to handle connection upgrades by another library, for instanace Simple-WebSocket-Server
|
2017-01-01 14:34:42 +01:00 |
|
eidheim
|
549bc646bb
|
Case insensitive header cleanup. Also cleanup and additions to parse_test
|
2016-12-31 10:34:03 +01:00 |
|