Commit graph

525 commits

Author SHA1 Message Date
eidheim
4bc50785ac Moved boost::asio::strand yet again. 2015-09-04 18:49:26 +02:00
eidheim
c6806e6fde Minor change in examples. 2015-09-04 18:09:51 +02:00
eidheim
e78b321914 Added OPENSSL_ROOT_DIR for OS X. 2015-09-04 18:04:23 +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
c9f8a59a4d Fixes #15, file opened are now opened as binary. 2015-09-03 08:37:35 +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
eidheim
dc944ce2fb Now using boost::filesystem in the default_resource examples. 2015-06-27 13:04:35 +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
eidheim
5f34b5db5e Added Request::remote_endpoint_address and Request::remote_endpoint_port that are read when Request is created. 2015-06-27 10:43:17 +02:00
Christophe Meessen
247639b1e0 /info now displays remote host and port 2015-06-27 10:35:50 +02:00
Christophe Meessen
bc7e5da304 comment unused parameter 2015-06-27 10:12:17 +02:00
eidheim
9fa5fac4cb Added include_directories(.) in CMakeLists.txt. 2015-05-18 12:50:09 +02:00
eidheim
3042ee4a31 Added parse test for server and client. 2015-05-16 09:55:41 +02:00
Ole Christian Eidheim
419c3f0233 Merge pull request #7 from TechPriest/master
Fixed MSVC build of HTTP server.
2015-05-15 10:18:34 +02:00
TechPriest
96f3e0c766 Fixed MSVC build of HTTP server. 2015-05-06 11:48:35 +03:00
Ole Christian Eidheim
764bef9cad Boost 1.54 should work 2015-02-25 16:42:50 +01:00
Ole Christian Eidheim
ed4d8a9433 Merge pull request #5 from craigminihan/patch-1
Require Boost version 1.55 or later
2015-02-25 15:17:06 +01:00
Craig Minihan
6229c14b79 Require Boost version 1.55 or later 2015-02-25 12:13:23 +00:00
eidheim
d59a789881 default_resource: added direct write to response stream. 2015-02-23 10:03:18 +01:00
eidheim
6c85e3b739 Minor fix 2015-02-23 09:49:32 +01:00
eidheim
0acc7455f8 Faster default_resource for files smaller than buffer_size. 2015-02-23 09:46:29 +01:00
eidheim
525eb2983b Slightly faster resource lookup. 2015-02-22 15:26:30 +01:00
Ole Christian Eidheim
8818a4c8e0 Update README.md 2015-02-22 15:08:46 +01:00
eidheim
7aae65b1b5 All resources now again uses regex for path, since requests/second were no longer much affected by this. 2015-02-22 12:06:30 +01: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
Ole Christian Eidheim
79903b6abb Update README.md 2015-01-30 17:34:48 +01:00
Ole Christian Eidheim
0a33b2e054 Update README.md 2015-01-30 17:27:12 +01:00
Ole Christian Eidheim
9a918ed839 Update README.md 2015-01-30 17:26:09 +01:00
Ole Christian Eidheim
109c825d7a Update README.md 2015-01-30 17:25:09 +01:00
Ole Christian Eidheim
28fc2da2b4 Update README.md 2015-01-30 17:23:29 +01:00
Ole Christian Eidheim
85fd8a46a0 Update README.md 2015-01-10 10:20:52 +01:00
Ole Christian Eidheim
cc15f19e94 Update README.md 2015-01-10 10:19:53 +01:00
Ole Christian Eidheim
e1f7d81d95 Update README.md 2015-01-10 10:04:14 +01:00
eidheim
07d43c7311 Made read_json thread-safe. 2015-01-10 09:56:35 +01:00
eidheim
37e12d0a63 Added threads.clear() in ServerBase::start. 2015-01-09 13:01:30 +01:00
eidheim
0c96e9f845 Added all_resources.clear() to ServerBase::start in case server is restarted. 2015-01-09 12:27:16 +01:00
eidheim
af3f846b2b Added CMakeLists.txt. I'm not a cmake-expert, feedback would be much appreciated. 2014-11-28 21:49:59 +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
8bd90d220c Fixed default parameter of header for ClientBase::request 2014-10-10 18:42:24 +02:00
eidheim
084f45cc33 Added Server::stop() 2014-09-28 13:05:24 +02:00
Ole Christian Eidheim
2f75911550 Update README.md 2014-09-25 15:20:08 +02:00
Ole Christian Eidheim
b2532affaf fixed comment 2014-08-30 09:14:41 +02:00