Commit graph

38 commits

Author SHA1 Message Date
eidheim
c934c9aefe Timeout timers and Client's connection close cleanup 2017-07-04 08:51:15 +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
e50d2fc63a Added .clang-format file and applied style to source files 2017-06-26 15:23:29 +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
f5ba673350 Further cleanup of Client 2017-06-12 11:52:37 +02:00
eidheim
e2981c340b Cleanup of Client in preparation for async request 2017-06-12 10:53:22 +02:00
eidheim
944c7fe370 Client::resolver is no longer a member variable 2017-06-12 08:32:27 +02:00
eidheim
a0cd7520ba Made Client::create_request_header const, and cleanup of indentations in Client 2017-06-12 08:22:40 +02:00
eidheim
45f84489bc Client::io_service is now shared_ptr 2017-06-12 07:57:10 +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
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
91d01fb8ec Fixes #101: added Config::timeout_connect 2017-01-21 10:22:27 +01:00
eidheim
8fa7de4a2b Cleanup of Client<HTTPS> constructor 2016-12-18 11:18:16 +01:00
eidheim
4606dbd855 Fixes Client<HTTPS> proxy requests. See #83 2016-12-16 11:11:58 +01:00
eidheim
dc7762e63b Fixes #91: added timeout on Client's async_connect 2016-12-11 10:53:33 +01:00
eidheim
14d848be3e string::substr comparisons replaced by string::compare 2016-12-04 14:25:11 +01:00
eidheim
4a97949953 Security fix for Client<HTTPS>: added host verification, fixes #90 2016-12-04 13:45:39 +01:00
eidheim
ddb5622f76 Fixed request path when using proxy with HTTPS client 2016-11-26 10:33:11 +01:00
eidheim
fa4dd130e5 Fixed proxy status code check 2016-11-25 12:49:48 +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
4141b76574 Cleanup of Client::connect methods 2016-11-24 18:05:19 +01:00
eidheim
9d9a8622d5 Added proxy server support to Client. Based on #83 2016-11-24 14:07:11 +01:00
eidheim
76bf8942fd Made Client::close thread safe 2016-11-23 10:32:53 +01:00
eidheim
b1200958cc Added workaround for buggy MSVS 2016-11-23 09:24:41 +01:00
eidheim
fad2292061 Fixed Client<HTTPS> socket creation in cases where the socket has been closed 2016-11-23 08:47:44 +01:00
eidheim
8a73cb381a Fixes #86: can now set timeout on client requests 2016-11-23 07:01:48 +01:00
eidheim
2f32a2b52f Client now uses asynchronous asio read/write calls 2016-11-23 06:01:39 +01:00
eidheim
ffac7545cf Fixes #66, added boost::asio::ssl::context::set_default_verify_paths when verify_certificate is set to true in Client<HTTPS> constructor 2016-08-24 09:26:38 +02:00
eidheim
e18fcb4ceb Force tlsv12 in Client<HTTPS> 2016-08-22 14:07:16 +02:00
eidheim
1268c5b6de Changed private to protected in Server/Client<HTTP/HTTPS> classes, and some cleanup 2016-08-21 10:59:24 +02:00
eidheim
79dca558d2 Resolved most warning messages when compiled with -Wextra or -Weverything. Related to #44 and #45 2016-05-02 13:12:57 +02:00
eidheim
a6154c7c5b Added custom response stream and possibility to flush response to clients synchronously and asynchronously. Various speed ups, including reduced use of regex and preprocessing of regex objects. boost::asio::ip::tcp::no_delay is now turned on for both Client and Server. Note: Not backward compatible with earlier versions. 2015-02-20 11:14:39 +01:00
eidheim
4a63b126b3 renamed #define CLIENT_WS_HPP and CLIENT_WSS_HPP to CLIENT_HTTP_HPP and CLIENT_HTTPS_HPP. 2014-11-02 12:27:18 +01:00
eidheim
db365340bf Added option for verify_file in Server-constructor, and certification/key file and verify_file for Client-constructor (Warning: not tested). Also moved set_timeout_on_socket to the ServerBase. 2014-11-01 18:18:00 +01:00
eidheim
bfa0946ff9 forgot client-files 2014-08-11 10:06:46 +02:00