Commit graph

  • 38e2d09a42 Replaced unsafe std::vector and its reserve with std::array in the default_resource examples eidheim 2016-03-11 11:22:03 +01:00
  • c072ae7382 Removed a test message I forgot to remove last commit eidheim 2016-03-10 16:30:20 +01:00
  • 359bad9862 Cleanup of the default_resource check that ensures that the request path is within the given web_root_path eidheim 2016-03-10 16:25:12 +01:00
  • 931ff3dba2 Cleanup of parse_request and connection close support eidheim 2016-03-10 10:09:31 +01:00
  • b841331023 Merge branch 'branch_1' of https://github.com/waga-git/Simple-Web-Server eidheim 2016-03-10 09:36:20 +01:00
  • 25e15d9e93 Added link to juCi++ Ole Christian Eidheim 2016-03-07 09:31:17 +01:00
  • 357e57f70c Added reference to case insensitive implementation of unordered_multimap eidheim 2016-02-24 09:17:09 +01:00
  • 3c4c378655 Fixes #35 for both client and server source eidheim 2016-02-24 09:13:23 +01:00
  • 3341badb41 Fixes #38 eidheim 2016-02-23 20:24:39 +01:00
  • c558a03148 Support Connection: close header waga-git 2016-02-20 12:01:26 +09:00
  • 076788d417 Support Connection: close header waga-git 2016-02-20 11:50:17 +09:00
  • ef7f4692a4 Fixes #33 eidheim 2016-01-06 12:45:21 +01:00
  • 99204ec73d content parameter in Client::request is now of type std::iostream eidheim 2016-01-06 11:58:11 +01:00
  • faf3c68c4b Fixes #28 eidheim 2015-12-09 14:44:28 +01:00
  • 25cf95276d Merge pull request #27 from DraconPern/master Ole Christian Eidheim 2015-11-28 11:08:46 +01:00
  • e37980fefc fixed vs2012 compile DraconPern 2015-11-27 14:43:38 -06:00
  • aecb04c7ac Added .gitignore. eidheim 2015-11-26 14:31:20 +01:00
  • e6a3205e18 Improved Client::parse_response_header, and simplified endpoint code in Server::start. eidheim 2015-11-26 14:29:43 +01:00
  • 7b5688468a Fixed at least two bugs when receiving non-standard requests. eidheim 2015-11-24 20:02:11 +01:00
  • b273602032 Moved io_service.reset before endpoint and acceptor setup. eidheim 2015-11-24 10:48:30 +01:00
  • 90d854759e Server::start-stop-start should now work given that appropriate delays are set between the operations (at least start and stop). eidheim 2015-11-24 10:46:51 +01:00
  • 8534eed87d Added Server::Config, fixes #26, making it possible to specify address or turn off reuse_address. eidheim 2015-11-22 21:20:36 +01:00
  • 880067f7c2 Renamed HttpServer:: to Server:: in README.md. eidheim 2015-11-20 10:00:02 +01:00
  • c7244c099e Minor fixes. eidheim 2015-11-20 09:57:54 +01:00
  • 4adf2e040a Removed io_service from Server::Response since it is no longer needed. Fixes #25. eidheim 2015-11-18 08:23:44 +01:00
  • 5cca84ee6c Corrected OpenSSL_FOUND to OPENSSL_FOUND. eidheim 2015-11-15 21:30:05 +01:00
  • b6080f0a1e A few minor changes to #22. eidheim 2015-10-24 16:58:18 +02:00
  • 2181a172e8 Merge branch 'fivethreeo-master' eidheim 2015-10-24 16:44:28 +02:00
  • 79234c6c6b no static linking Øyvind Saltvik 2015-10-15 16:16:26 +02:00
  • 7960973793 only build https if openssl found, test msvc14 compiler Øyvind Saltvik 2015-10-15 15:00:39 +02:00
  • ec55495562 support visual studio 2015 Øyvind Saltvik 2015-10-11 16:08:30 +02:00
  • 9a708dc7a0 Now supports MSYS2, and parse_test compile with g++-5.2. U-ole-PC\ole 2015-09-29 15:19:59 +02:00
  • d3e0c80e18 Should now compile with g++ 4.8 Ole Christian Eidheim 2015-09-29 14:24:41 +02:00
  • 7be882437b Removed need of C++11 regex for the time being Ole Christian Eidheim 2015-09-29 14:23:40 +02:00
  • c14abc1508 Slightly improved dependency section Ole Christian Eidheim 2015-09-29 14:21:18 +02:00
  • e819991caa Less confusing dependency section Ole Christian Eidheim 2015-09-29 14:18:22 +02:00
  • 41ff4a5988 Merge pull request #18 from bjorkegeek/master Ole Christian Eidheim 2015-09-29 14:16:13 +02:00
  • 57cc062223 Use boost regex instead of std, because of buggy glibc++ in RHEL7 David Björkevik 2015-09-28 16:59:03 +02:00
  • 73961f419f Update https_examples.cpp Ole Christian Eidheim 2015-09-21 14:51:49 +02:00
  • 9f1718651e Simpler README Ole Christian Eidheim 2015-09-21 11:30:28 +02:00
  • 7951ded3ec Slight cleanup and added convenience function to retrieve Request::content string. eidheim 2015-09-19 13:01:40 +02:00
  • c58b7a788e Response stream now subclass std::ostream. Also some cleanup of default_resource example. eidheim 2015-09-06 17:59:02 +02:00
  • 4bc50785ac Moved boost::asio::strand yet again. eidheim 2015-09-04 18:49:26 +02:00
  • c6806e6fde Minor change in examples. eidheim 2015-09-04 18:09:51 +02:00
  • e78b321914 Added OPENSSL_ROOT_DIR for OS X. eidheim 2015-09-04 18:04:23 +02:00
  • e6e52f0c46 Added size_t Response::size(). eidheim 2015-09-04 18:02:33 +02:00
  • 9e6b01eed1 Moved strand to ServerBase. eidheim 2015-09-04 18:01:16 +02:00
  • c9f8a59a4d Fixes #15, file opened are now opened as binary. eidheim 2015-09-03 08:37:35 +02:00
  • 3b85cd0c54 Fixes #14. Now does not copy pointers in the stream to be sent to client. eidheim 2015-09-03 08:15:27 +02:00
  • fa1efed7f0 Now closes file if connection is interrupted in default_resource example. Also some minor cleanup. eidheim 2015-09-02 21:02:06 +02:00
  • 1a39476f92 Removed async_flush and its likely erroneous code. eidheim 2015-09-02 19:55:20 +02:00
  • 0ddc469edd Minor fix. eidheim 2015-08-03 21:37:44 +02:00
  • 8567c9f867 Minor fix. eidheim 2015-08-03 21:19:37 +02:00
  • d74505ed86 Fixed crash on server when Content-Length parameter was set to a non-number. eidheim 2015-08-03 21:15:26 +02:00
  • 739da9c1e6 remove ; after Server<HTTP> constructor Christophe Meessen 2015-06-15 15:36:51 +02:00
  • dc944ce2fb Now using boost::filesystem in the default_resource examples. eidheim 2015-06-27 13:04:35 +02:00
  • 2177e330b7 Changed Request::remote_endpoint_address to std::string. Modified parse_request too keep case of header parameters. Christophe Meessen 2015-06-15 10:38:09 +02:00
  • 5f34b5db5e Added Request::remote_endpoint_address and Request::remote_endpoint_port that are read when Request is created. eidheim 2015-06-27 10:43:17 +02:00
  • 247639b1e0 /info now displays remote host and port Christophe Meessen 2015-06-15 10:41:01 +02:00
  • bc7e5da304 comment unused parameter Christophe Meessen 2015-06-15 10:11:15 +02:00
  • 9fa5fac4cb Added include_directories(.) in CMakeLists.txt. eidheim 2015-05-18 12:50:09 +02:00
  • 3042ee4a31 Added parse test for server and client. eidheim 2015-05-16 09:55:41 +02:00
  • 419c3f0233 Merge pull request #7 from TechPriest/master Ole Christian Eidheim 2015-05-15 10:18:34 +02:00
  • 96f3e0c766 Fixed MSVC build of HTTP server. TechPriest 2015-05-06 11:48:35 +03:00
  • 764bef9cad Boost 1.54 should work Ole Christian Eidheim 2015-02-25 16:42:50 +01:00
  • ed4d8a9433 Merge pull request #5 from craigminihan/patch-1 Ole Christian Eidheim 2015-02-25 15:17:06 +01:00
  • 6229c14b79 Require Boost version 1.55 or later Craig Minihan 2015-02-25 12:13:23 +00:00
  • d59a789881 default_resource: added direct write to response stream. eidheim 2015-02-23 10:03:18 +01:00
  • 6c85e3b739 Minor fix eidheim 2015-02-23 09:49:32 +01:00
  • 0acc7455f8 Faster default_resource for files smaller than buffer_size. eidheim 2015-02-23 09:46:29 +01:00
  • 525eb2983b Slightly faster resource lookup. eidheim 2015-02-22 15:26:30 +01:00
  • 8818a4c8e0 Update README.md Ole Christian Eidheim 2015-02-22 15:08:46 +01:00
  • 7aae65b1b5 All resources now again uses regex for path, since requests/second were no longer much affected by this. eidheim 2015-02-22 12:06:30 +01:00
  • 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. eidheim 2015-02-20 11:14:39 +01:00
  • 79903b6abb Update README.md Ole Christian Eidheim 2015-01-30 17:34:48 +01:00
  • 0a33b2e054 Update README.md Ole Christian Eidheim 2015-01-30 17:27:12 +01:00
  • 9a918ed839 Update README.md Ole Christian Eidheim 2015-01-30 17:26:09 +01:00
  • 109c825d7a Update README.md Ole Christian Eidheim 2015-01-30 17:25:09 +01:00
  • 28fc2da2b4 Update README.md Ole Christian Eidheim 2015-01-30 17:23:29 +01:00
  • 85fd8a46a0 Update README.md Ole Christian Eidheim 2015-01-10 10:20:52 +01:00
  • cc15f19e94 Update README.md Ole Christian Eidheim 2015-01-10 10:19:53 +01:00
  • e1f7d81d95 Update README.md Ole Christian Eidheim 2015-01-10 10:04:14 +01:00
  • 07d43c7311 Made read_json thread-safe. eidheim 2015-01-10 09:56:35 +01:00
  • 37e12d0a63 Added threads.clear() in ServerBase::start. eidheim 2015-01-09 13:01:30 +01:00
  • 0c96e9f845 Added all_resources.clear() to ServerBase::start in case server is restarted. eidheim 2015-01-09 12:27:16 +01:00
  • af3f846b2b Added CMakeLists.txt. I'm not a cmake-expert, feedback would be much appreciated. eidheim 2014-11-28 21:49:59 +01:00
  • 4a63b126b3 renamed #define CLIENT_WS_HPP and CLIENT_WSS_HPP to CLIENT_HTTP_HPP and CLIENT_HTTPS_HPP. eidheim 2014-11-02 12:27:18 +01:00
  • 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. eidheim 2014-11-01 18:18:00 +01:00
  • 8bd90d220c Fixed default parameter of header for ClientBase::request eidheim 2014-10-10 18:42:24 +02:00
  • 084f45cc33 Added Server::stop() eidheim 2014-09-28 13:05:24 +02:00
  • 2f75911550 Update README.md Ole Christian Eidheim 2014-09-25 15:20:08 +02:00
  • b2532affaf fixed comment Ole Christian Eidheim 2014-08-30 09:14:41 +02:00
  • 84d5fe7a2a fixed comment Ole Christian Eidheim 2014-08-30 09:14:09 +02:00
  • 3367b86f07 Changed ..-replacement in examples eidheim 2014-08-29 19:02:34 +02:00
  • b174ad5232 removed comment eidheim 2014-08-13 09:54:19 +02:00
  • 93e811d649 added header parameter to Client::request eidheim 2014-08-13 09:53:35 +02:00
  • 6714b15123 Update README.md Ole Christian Eidheim 2014-08-13 08:25:46 +02:00
  • a39235ad87 removed no_delay test eidheim 2014-08-12 07:51:31 +02:00
  • 38ca7e5575 renamed streambuf to content_buffer eidheim 2014-08-12 07:47:27 +02:00
  • d22382959c minor update eidheim 2014-08-11 10:28:34 +02:00