Commit graph

15 commits

Author SHA1 Message Date
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
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
eidheim
d59a789881 default_resource: added direct write to response stream. 2015-02-23 10:03:18 +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
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
eidheim
07d43c7311 Made read_json thread-safe. 2015-01-10 09:56:35 +01:00
Ole Christian Eidheim
84d5fe7a2a fixed comment 2014-08-30 09:14:09 +02:00
eidheim
3367b86f07 Changed ..-replacement in examples 2014-08-29 19:02:34 +02:00
eidheim
256dd6fe32 removed comments 2014-08-11 10:05:44 +02:00
eidheim
313bc233d0 renamed example files 2014-08-11 10:04:36 +02:00