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
|
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 |
|
eidheim
|
0662cbdfb7
|
Added timeout to Server::Response::send, and some cleanup
|
2017-07-04 11:21:31 +02:00 |
|
eidheim
|
30f4f94a03
|
ServerBase now derives from and use std::enable_shared_from_this
|
2017-07-03 18:00:49 +02:00 |
|
eidheim
|
026f47f195
|
ClientBase now derives from and use std::enable_shared_from_this
|
2017-07-03 18:00:24 +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
|
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
|
2d3062265d
|
Added longer Base64 decode/encode test
|
2017-06-29 12:46:54 +02:00 |
|
eidheim
|
e50d2fc63a
|
Added .clang-format file and applied style to source files
|
2017-06-26 15:23:29 +02:00 |
|
eidheim
|
98d9617244
|
Added QueryString class with create and parse functions to utility.hpp
|
2017-06-25 16:43:49 +02:00 |
|
eidheim
|
1d9e900f44
|
Added Percent::encode
|
2017-06-25 14:32:38 +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
|
362c1a2591
|
Now closes unwanted client connections when a request is finished. Also added additional tests
|
2017-06-25 07:20:03 +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
|
1d34b7f3de
|
Minor change in io_test.cpp
|
2017-06-19 12:37:50 +02:00 |
|
eidheim
|
e1aebba344
|
Fixes #114: added support for async client requests. Also includes some cleanup, support for parallel requests, and client reconnect
|
2017-06-17 11:52:13 +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
|
cc15aac704
|
Added tests for case_insensitive_equals and case_insensitive_hash
|
2017-06-07 19:28:21 +02:00 |
|
eidheim
|
ec63c4345e
|
Cleanup of #127: using standalone asio.
|
2017-06-07 19:27:34 +02:00 |
|
eidheim
|
550bbfe9d7
|
Finished query string parsing implementation (PR #109)
|
2017-05-27 09:07:13 +02:00 |
|
eidheim
|
549bc646bb
|
Case insensitive header cleanup. Also cleanup and additions to parse_test
|
2016-12-31 10:34:03 +01:00 |
|
eidheim
|
6c3a59d9ba
|
Cleanup of server-constructors. Previous constructors have been marked as deprecated.
|
2016-12-29 09:53:58 +01:00 |
|
eidheim
|
92ddf86e15
|
Added stream versions of the Crypto:: hash functions for calculating hashes from for instance large files
|
2016-12-21 10:07:22 +01:00 |
|
eidheim
|
9e29d2d572
|
Added Crypto::pbkdf2
|
2016-12-20 16:17:00 +01:00 |
|
eidheim
|
2daf3836fc
|
Renamed Crypto:: hash methods
|
2016-12-20 15:54:51 +01:00 |
|
eidheim
|
5c5a1f78b2
|
Added crypto.hpp for convenient C++ wrappings for commonly used OpenSSL functions
|
2016-12-20 12:21:38 +01:00 |
|
eidheim
|
eef8a10849
|
Added error reporting through on_error std::function
|
2016-12-19 08:44:41 +01:00 |
|
eidheim
|
302f980cf3
|
Added extra test: check if the stream version of the client request methods works if called first
|
2016-11-26 10:45:17 +01:00 |
|
eidheim
|
ddb5622f76
|
Fixed request path when using proxy with HTTPS client
|
2016-11-26 10:33:11 +01:00 |
|
eidheim
|
599775c83f
|
Made protocol() const, added default proxy ports, and added handshake on https proxy (based on #83)
|
2016-11-25 12:44:59 +01:00 |
|
eidheim
|
9d9a8622d5
|
Added proxy server support to Client. Based on #83
|
2016-11-24 14:07:11 +01:00 |
|
eidheim
|
74d7ca0cdb
|
Added Client::request stream content test as suggested in #87
|
2016-11-23 12:24:55 +01:00 |
|
eidheim
|
0d8052dcb9
|
Simplified Server::parse_request
|
2016-11-23 09:54:22 +01:00 |
|
eidheim
|
2f32a2b52f
|
Client now uses asynchronous asio read/write calls
|
2016-11-23 06:01:39 +01:00 |
|
eidheim
|
d6f3d55019
|
Renamed test folder to tests
|
2016-08-03 12:15:32 +02:00 |
|