Commit graph

171 commits

Author SHA1 Message Date
eidheim
7a97f8218d Added client verification when a verify file is passed to Server<HTTPS>. Also sets session_id_context for session reuse. See #89 2016-12-18 17:22:04 +01:00
Tadeu
dc74f7739e compile clean with gcc 4.6.3 2016-12-12 22:05:17 +00:00
eidheim
14d848be3e string::substr comparisons replaced by string::compare 2016-12-04 14:25:11 +01:00
eidheim
0d8052dcb9 Simplified Server::parse_request 2016-11-23 09:54:22 +01:00
eidheim
7d95360e62 Minor timeout source cleanups 2016-11-23 07:17:14 +01:00
eidheim
8a73cb381a Fixes #86: can now set timeout on client requests 2016-11-23 07:01:48 +01:00
David Olszowka
743785b563 Fixed crash if server instance gets deleted after the call to io_service->stop() but before the acceptor gets notified of the stop. 2016-11-10 10:16:49 +01:00
eidheim
8da3ad4dde Fixes #82: wrong reset method called in ::start 2016-11-07 15:24:04 +01:00
eidheim
8e0d3142bf Added fallback to boost::regex if gcc version<4.9. Fixes #77 2016-10-25 08:33:02 +02:00
eidheim
78d68b063b Now uses std::regex instead of boost::regex 2016-10-24 14:54:09 +02:00
eidheim
3a4b7143cc Can now use external, or reuse, boost::asio::io_service. 2016-10-19 09:53:32 +02:00
eidheim
d94f6d6d27 Slight optimisation: less copies of shared_ptr objects 2016-10-19 09:16:02 +02:00
eidheim
87508d1ae2 Minor cleanup of exception_handler code 2016-09-07 09:01:01 +02:00
Jørgen Lien Sellæg
eafca19cb3 feature: move exception handling of read_remote_endpoint_data to calling method 2016-09-03 18:15:57 +02:00
Jørgen Lien Sellæg
d490c3ff4e feature: add exception handler for http server 2016-09-01 17:17:31 +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
7ebf75817b Minor cleanup: removed a set_timeout_on_socket version that is no longer needed 2016-06-30 09:49:26 +02:00
eidheim
0b397bc697 Added heavy work example 2016-06-29 10:10:34 +02:00
eidheim
c7284acd8f Fixes to the default_resource examples 2016-06-28 22:52:12 +02:00
eidheim
dc466e7d1d Fixes #46: library is now fully asynchronous 2016-06-28 12:49:12 +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
359bad9862 Cleanup of the default_resource check that ensures that the request path is within the given web_root_path 2016-03-10 16:25:12 +01:00
eidheim
931ff3dba2 Cleanup of parse_request and connection close support 2016-03-10 10:09:31 +01:00
eidheim
b841331023 Merge branch 'branch_1' of https://github.com/waga-git/Simple-Web-Server 2016-03-10 09:36:20 +01:00
eidheim
357e57f70c Added reference to case insensitive implementation of unordered_multimap 2016-02-24 09:17:09 +01:00
eidheim
3c4c378655 Fixes #35 for both client and server source 2016-02-24 09:13:23 +01:00
waga-git
c558a03148 Support Connection: close header 2016-02-20 12:01:26 +09:00
waga-git
076788d417 Support Connection: close header 2016-02-20 11:50:17 +09:00
eidheim
faf3c68c4b Fixes #28 2015-12-09 14:44:28 +01:00
DraconPern
e37980fefc fixed vs2012 compile 2015-11-27 14:43:38 -06:00
eidheim
e6a3205e18 Improved Client::parse_response_header, and simplified endpoint code in Server::start. 2015-11-26 14:29:43 +01:00
eidheim
7b5688468a Fixed at least two bugs when receiving non-standard requests. 2015-11-24 20:02:11 +01:00
eidheim
b273602032 Moved io_service.reset before endpoint and acceptor setup. 2015-11-24 10:48:30 +01:00
eidheim
90d854759e Server::start-stop-start should now work given that appropriate delays are set between the operations (at least start and stop). 2015-11-24 10:46:51 +01:00
eidheim
8534eed87d Added Server::Config, fixes #26, making it possible to specify address or turn off reuse_address. 2015-11-22 21:20:36 +01:00
eidheim
4adf2e040a Removed io_service from Server::Response since it is no longer needed. Fixes #25. 2015-11-18 08:23:44 +01:00
David Björkevik
57cc062223 Use boost regex instead of std, because of buggy glibc++ in RHEL7 2015-09-28 16:59:03 +02:00
eidheim
7951ded3ec Slight cleanup and added convenience function to retrieve Request::content string. 2015-09-19 13:01:40 +02:00
eidheim
c58b7a788e Response stream now subclass std::ostream. Also some cleanup of default_resource example. 2015-09-06 17:59:02 +02:00
eidheim
4bc50785ac Moved boost::asio::strand yet again. 2015-09-04 18:49:26 +02:00
eidheim
e6e52f0c46 Added size_t Response::size(). 2015-09-04 18:02:33 +02:00
eidheim
9e6b01eed1 Moved strand to ServerBase. 2015-09-04 18:01:16 +02:00
eidheim
3b85cd0c54 Fixes #14. Now does not copy pointers in the stream to be sent to client. 2015-09-03 08:15:27 +02:00
eidheim
fa1efed7f0 Now closes file if connection is interrupted in default_resource example. Also some minor cleanup. 2015-09-02 21:02:06 +02:00
eidheim
1a39476f92 Removed async_flush and its likely erroneous code. 2015-09-02 19:55:20 +02:00
eidheim
0ddc469edd Minor fix. 2015-08-03 21:37:44 +02:00
eidheim
8567c9f867 Minor fix. 2015-08-03 21:19:37 +02:00
eidheim
d74505ed86 Fixed crash on server when Content-Length parameter was set to a non-number. 2015-08-03 21:15:26 +02:00
Christophe Meessen
739da9c1e6 remove ; after Server<HTTP> constructor 2015-06-27 13:12:59 +02:00
Christophe Meessen
2177e330b7 Changed Request::remote_endpoint_address to std::string. Modified parse_request too keep case of header parameters. 2015-06-27 11:30:20 +02:00