Commit graph

  • de560e8b48 Renamed close_connection_after_send to close_connection_after_response, and changed the documentation of this variable slightly eidheim 2017-01-24 14:18:41 +01:00
  • 600fbe39b2 Possible implementation for fixing #106 Patrick Boettcher 2017-01-24 10:46:39 +01:00
  • 91d01fb8ec Fixes #101: added Config::timeout_connect eidheim 2017-01-21 10:22:27 +01:00
  • 19627bbe6b Fixed Boost.Regex workaround in regex_orderable. Fixes #100 Wei Dong 2017-01-11 11:37:25 +01:00
  • f5e65bf422 Removed unnecessary public: eidheim 2017-01-02 17:19:59 +01:00
  • fa8c381a4f Added warning to Server::resource eidheim 2017-01-02 12:47:42 +01:00
  • 8cdebfb612 Code simplification: got rid of opt_resource at minimal cost. Now utilise map instead of unordered map in resource and default_resource eidheim 2017-01-02 10:58:41 +01:00
  • bfcb325472 Added on_upgrade for cases where one wants to handle connection upgrades by another library, for instanace Simple-WebSocket-Server eidheim 2017-01-01 14:34:42 +01:00
  • 549bc646bb Case insensitive header cleanup. Also cleanup and additions to parse_test eidheim 2016-12-31 10:34:03 +01:00
  • ec5eda1521 Minor SocketServer<WSS> constructor cleanup eidheim 2016-12-30 10:44:10 +01:00
  • 8c8ef391f8 Fixed DEPRECATED macro in cases where it is already defined eidheim 2016-12-30 10:19:21 +01:00
  • 175d4dd869 Bugfix for last commit: config.timeout_content now correctly set in old constructor eidheim 2016-12-29 10:15:20 +01:00
  • 6c3a59d9ba Cleanup of server-constructors. Previous constructors have been marked as deprecated. eidheim 2016-12-29 09:53:58 +01:00
  • 30ef094b02 Fixes to HTTP caching (#97) eidheim 2016-12-28 10:54:59 +01:00
  • 12f0678065 Merge branch 'master' of https://github.com/sebt3/Simple-Web-Server eidheim 2016-12-28 09:37:40 +01:00
  • 92ddf86e15 Added stream versions of the Crypto:: hash functions for calculating hashes from for instance large files eidheim 2016-12-21 10:07:22 +01:00
  • acea17162c oups again, it should have been painless. At least I reviewed my commit Sébastien Huss 2016-12-20 22:27:40 +01:00
  • 36c2264bdc oups forgot to link to openssl Sébastien Huss 2016-12-20 22:18:00 +01:00
  • d4f5fddba3 Made the cache feature secured in #ifdef block and added it to the http example too Sébastien Huss 2016-12-20 22:15:58 +01:00
  • 9492b942b9 Added support for HTTP caching in the https example Sébastien Huss 2016-12-20 22:02:52 +01:00
  • 9e29d2d572 Added Crypto::pbkdf2 eidheim 2016-12-20 16:17:00 +01:00
  • 2daf3836fc Renamed Crypto:: hash methods eidheim 2016-12-20 15:54:51 +01:00
  • 5c5a1f78b2 Added crypto.hpp for convenient C++ wrappings for commonly used OpenSSL functions eidheim 2016-12-20 12:21:38 +01:00
  • 5cdf4aa540 Avoid compiling error in MSVC Ziyi Zhang 2016-12-20 15:21:40 +11:00
  • db95a64354 Minor cleanup eidheim 2016-12-19 09:08:35 +01:00
  • d19244e01f Minor cleanup eidheim 2016-12-19 09:05:55 +01:00
  • eef8a10849 Added error reporting through on_error std::function eidheim 2016-12-19 08:39:34 +01:00
  • 8a88a019ea Minor cleanup, replaced expression with std::min eidheim 2016-12-18 17:34:22 +01:00
  • 7a97f8218d Added client verification when a verify file is passed to Server<HTTPS>. Also sets session_id_context for session reuse. See #89 eidheim 2016-12-18 17:22:04 +01:00
  • 8fa7de4a2b Cleanup of Client<HTTPS> constructor eidheim 2016-12-18 11:18:16 +01:00
  • 4606dbd855 Fixes Client<HTTPS> proxy requests. See #83 eidheim 2016-12-16 11:11:34 +01:00
  • dc74f7739e compile clean with gcc 4.6.3 Tadeu 2016-12-12 22:05:17 +00:00
  • dc7762e63b Fixes #91: added timeout on Client's async_connect eidheim 2016-12-11 10:53:33 +01:00
  • 14d848be3e string::substr comparisons replaced by string::compare eidheim 2016-12-04 14:25:11 +01:00
  • 4a97949953 Security fix for Client<HTTPS>: added host verification, fixes #90 eidheim 2016-12-04 13:45:39 +01:00
  • 302f980cf3 Added extra test: check if the stream version of the client request methods works if called first eidheim 2016-11-26 10:45:17 +01:00
  • ddb5622f76 Fixed request path when using proxy with HTTPS client eidheim 2016-11-26 10:32:47 +01:00
  • fa4dd130e5 Fixed proxy status code check eidheim 2016-11-25 12:49:48 +01:00
  • 599775c83f Made protocol() const, added default proxy ports, and added handshake on https proxy (based on #83) eidheim 2016-11-25 12:36:49 +01:00
  • 4141b76574 Cleanup of Client::connect methods eidheim 2016-11-24 18:05:19 +01:00
  • f8cae4fde5 Corrected path when using proxy server in client eidheim 2016-11-24 17:55:09 +01:00
  • 9d9a8622d5 Added proxy server support to Client. Based on #83 eidheim 2016-11-24 14:07:11 +01:00
  • 59bf48b37f Fixes #88: no longer tries to read and write 0 bytes in Client when reading chunked transfer encoding Mathieu Schroeter 2016-11-23 14:43:28 +01:00
  • 6138e95d08 Minor cleanup of CMakeLists.txt eidheim 2016-11-23 14:06:58 +01:00
  • e7be91ef14 Fixes #87: now connects to socket when using second Client::request method Mathieu Schroeter 2016-11-23 13:43:00 +01:00
  • 74d7ca0cdb Added Client::request stream content test as suggested in #87 eidheim 2016-11-23 12:24:55 +01:00
  • 76bf8942fd Made Client::close thread safe eidheim 2016-11-23 10:31:37 +01:00
  • 0d8052dcb9 Simplified Server::parse_request eidheim 2016-11-23 09:54:22 +01:00
  • b1200958cc Added workaround for buggy MSVS eidheim 2016-11-23 09:24:41 +01:00
  • 56d36ddf92 Related to #86: added Client::close method eidheim 2016-11-23 09:13:55 +01:00
  • fad2292061 Fixed Client<HTTPS> socket creation in cases where the socket has been closed eidheim 2016-11-23 08:47:44 +01:00
  • 7d95360e62 Minor timeout source cleanups eidheim 2016-11-23 07:12:56 +01:00
  • 8a73cb381a Fixes #86: can now set timeout on client requests eidheim 2016-11-23 06:57:26 +01:00
  • 2f32a2b52f Client now uses asynchronous asio read/write calls eidheim 2016-11-22 22:28:23 +01:00
  • 743785b563 Fixed crash if server instance gets deleted after the call to io_service->stop() but before the acceptor gets notified of the stop. David Olszowka 2016-11-07 17:32:21 +01:00
  • 8da3ad4dde Fixes #82: wrong reset method called in ::start eidheim 2016-11-07 15:24:04 +01:00
  • 8e0d3142bf Added fallback to boost::regex if gcc version<4.9. Fixes #77 eidheim 2016-10-25 08:33:02 +02:00
  • 88a8b154e5 Simplified the default_resource example eidheim 2016-10-24 15:41:33 +02:00
  • 78d68b063b Now uses std::regex instead of boost::regex eidheim 2016-10-24 14:54:09 +02:00
  • 7fb40a1be9 Reverted e50f0b597f eidheim 2016-10-19 10:19:51 +02:00
  • 3a4b7143cc Can now use external, or reuse, boost::asio::io_service. eidheim 2016-10-19 09:53:32 +02:00
  • e50f0b597f Minor cleanup of default_resource example eidheim 2016-10-19 09:41:58 +02:00
  • d94f6d6d27 Slight optimisation: less copies of shared_ptr objects eidheim 2016-10-19 09:16:02 +02:00
  • 1c904b018f Added sh to markdown of compile instructions eidheim 2016-10-18 17:40:29 +02:00
  • ccb6e4d4f1 Updated compile and run instructions eidheim 2016-10-18 17:38:39 +02:00
  • 7120e8aff2 Minor typo fix eidheim 2016-09-07 20:56:23 +02:00
  • 4efd3bf83c default_resource examples should now always output errors eidheim 2016-09-07 20:34:00 +02:00
  • 1a2fe59fa9 Updated post json example in https_examples.cpp as well eidheim 2016-09-07 10:01:23 +02:00
  • b44fdc8183 Minor cleanup of post json example eidheim 2016-09-07 09:59:04 +02:00
  • 8e5ff77421 Merge branch 'patch-1' of https://github.com/Arash-codedev/Simple-Web-Server eidheim 2016-09-07 09:30:31 +02:00
  • 87508d1ae2 Minor cleanup of exception_handler code eidheim 2016-09-07 09:01:01 +02:00
  • dd41fb3265 Update http_examples.cpp Arash 2016-09-04 17:57:31 +10:00
  • 99114fd065 Update http_examples.cpp Arash 2016-09-04 17:56:57 +10:00
  • 1de7c6b1db Update http_examples.cpp Arash 2016-09-04 17:55:09 +10:00
  • c8bbf7e789 Fixing response header Arash 2016-09-04 10:48:11 +10:00
  • eafca19cb3 feature: move exception handling of read_remote_endpoint_data to calling method Jørgen Lien Sellæg 2016-09-03 18:15:57 +02:00
  • d490c3ff4e feature: add exception handler for http server Jørgen Lien Sellæg 2016-09-01 17:06:19 +02:00
  • ffac7545cf Fixes #66, added boost::asio::ssl::context::set_default_verify_paths when verify_certificate is set to true in Client<HTTPS> constructor eidheim 2016-08-24 09:26:38 +02:00
  • e18fcb4ceb Force tlsv12 in Client<HTTPS> eidheim 2016-08-22 14:07:16 +02:00
  • 9701a4504b only use tlsv12, nothing older Michael Behrns-Miller [bitpost-gentoo] 2016-08-21 07:42:58 -04:00
  • 1268c5b6de Changed private to protected in Server/Client<HTTP/HTTPS> classes, and some cleanup eidheim 2016-08-21 10:59:24 +02:00
  • 7fbb74b456 Fixes #62, required boost version is now 1.53 eidheim 2016-08-18 12:36:17 +02:00
  • 7ad8de4abc rename include subdirectory to simple-web-server Alfredo Luque 2016-08-10 15:56:32 -04:00
  • 9124a3edd2 Add install target for headers alfredo 2016-08-09 20:41:08 -04:00
  • d6f3d55019 Renamed test folder to tests eidheim 2016-08-03 12:15:32 +02:00
  • c33009beb1 Added CI eidheim 2016-08-03 11:36:50 +02:00
  • a7c6d6fdb6 Added io_test eidheim 2016-08-03 11:32:11 +02:00
  • d149601bad Updated copyright year in LICENSE Ole Christian Eidheim 2016-07-01 09:26:44 +02:00
  • 7ebf75817b Minor cleanup: removed a set_timeout_on_socket version that is no longer needed eidheim 2016-06-30 09:49:26 +02:00
  • 233fd31982 Updated work example eidheim 2016-06-29 12:26:11 +02:00
  • d2185bf28f Updated features in README.md eidheim 2016-06-29 10:16:35 +02:00
  • 0b397bc697 Added heavy work example eidheim 2016-06-29 10:10:34 +02:00
  • 3c3359f512 Improvements to default_resource examples eidheim 2016-06-29 00:34:58 +02:00
  • 8b6915a953 Updated README.md eidheim 2016-06-28 23:15:21 +02:00
  • c7284acd8f Fixes to the default_resource examples eidheim 2016-06-28 22:52:12 +02:00
  • dc466e7d1d Fixes #46: library is now fully asynchronous eidheim 2016-06-28 12:49:12 +02:00
  • 1609f80c38 CMakeLists.txt: extra warning flags and added SYSTEM to system includes. See #45 eidheim 2016-05-03 09:49:50 +02:00
  • 79dca558d2 Resolved most warning messages when compiled with -Wextra or -Weverything. Related to #44 and #45 eidheim 2016-05-02 13:12:57 +02:00
  • 131cd37328 Examples: fixed crash in default_resource Ole Christian Eidheim 2016-04-18 15:21:26 +02:00
  • c7f35ade7f Cleanup of the default_resource examples eidheim 2016-03-16 11:29:04 +01:00