eidheim
|
6e0a1ec9e8
|
Fixes issue mentioned in #164: remote endpoint address and port was not correctly set. Request::remote_endpoint_address and Request::remote_endpoint_port are now functions instead of variables in order to reduce unnecessary instructions.
|
2017-11-05 18:48:21 +01:00 |
|
vitor-alves
|
b9d4be229f
|
Added a parse_query_string() example
|
2017-11-02 16:37:14 +01:00 |
|
knowledge4igor
|
3ab6cd8a39
|
Change 'typedef' constructions to type aliases
|
2017-09-05 01:32:21 +03:00 |
|
eidheim
|
64bd58e5da
|
Fixes #149: added and resolved -Wsign-conversion warnings
|
2017-08-12 15:36:28 +02:00 |
|
eidheim
|
dcaad5e9da
|
Minor comment cleanup
|
2017-07-26 08:05:02 +02:00 |
|
eidheim
|
9548404fb4
|
Added try catch to example synchronous client requests
|
2017-07-22 14:05:08 +02:00 |
|
eidheim
|
c03e378e69
|
Comments addition and cleanup
|
2017-07-10 11:12:10 +02:00 |
|
eidheim
|
fd764d908c
|
Synchronous client request calls is now safe to use concurrently
|
2017-07-07 17:16:53 +02:00 |
|
eidheim
|
9b5063f422
|
Replaced Server/Client::shared_from_this with asio callback checks if the Server/Client has been destroyed. Also added SharedMutex to utility.hpp.
|
2017-07-07 11:25:06 +02:00 |
|
eidheim
|
57a0c83f64
|
Slightly improved default_resource example
|
2017-07-04 14:25:44 +02:00 |
|
eidheim
|
68f1e8413a
|
Reverted resource/response function parameter types shared_ptr& to shared_ptr. No real value added here, just more complicated code. Compiler might also optimise the now const lambda captures.
|
2017-07-04 12:04:07 +02:00 |
|
eidheim
|
cc1a8fc614
|
The function Server::send was moved to Server::Response::send
|
2017-07-04 10:14:58 +02:00 |
|
eidheim
|
a69e32290f
|
Server::send response parameter changed to const. Some cleanup of examples related to this.
|
2017-07-04 09:17:36 +02:00 |
|
eidheim
|
1992bbb4b4
|
Preparation for std::enable_shared_from_this: Server- and Client-constructors are no longer public, use ::create instead
|
2017-07-03 15:02:35 +02:00 |
|
eidheim
|
b3a1d48c0a
|
Callback shared_ptr parameters are now shared_ptr&
|
2017-07-03 14:25:48 +02:00 |
|
eidheim
|
b4756d0de3
|
Removed erroneous content type from examples
|
2017-07-01 08:40:30 +02:00 |
|
eidheim
|
e50d2fc63a
|
Added .clang-format file and applied style to source files
|
2017-06-26 15:23:29 +02:00 |
|
eidheim
|
0a72f6f280
|
Further cleanup of examples
|
2017-06-23 16:28:25 +02:00 |
|
eidheim
|
850dcd6601
|
Cleanup of examples
|
2017-06-23 10:28:29 +02:00 |
|
eidheim
|
dcbb45175a
|
Added convenience functions to examples
|
2017-06-23 08:05:48 +02:00 |
|
eidheim
|
6b7fd993cf
|
Added convenience function Client::Response::Content::string()
|
2017-06-22 22:00:59 +02:00 |
|
eidheim
|
4efdc095bd
|
Added convenience write functions to Server::response
|
2017-06-22 21:46:01 +02:00 |
|
eidheim
|
62da9daf87
|
Added Server::on_error and async client request examples
|
2017-06-20 14:36:05 +02:00 |
|
eidheim
|
ec63c4345e
|
Cleanup of #127: using standalone asio.
|
2017-06-07 19:27:34 +02:00 |
|
Sébastien Huss
|
46536c394b
|
Oups left tests in places, removed
|
2017-06-05 07:50:32 +02:00 |
|
Sébastien Huss
|
d50bcabf8e
|
added Support for NO_BOOST
|
2017-06-05 07:39:58 +02:00 |
|
eidheim
|
3f8fcc0c31
|
Removed unused lambda captures in examples
|
2017-06-02 07:34:44 +02:00 |
|
eidheim
|
7a1a23bf9c
|
Fixes #126: unreachable code in http(s) examples
|
2017-05-30 19:05:20 +02:00 |
|
eidheim
|
6c3a59d9ba
|
Cleanup of server-constructors. Previous constructors have been marked as deprecated.
|
2016-12-29 09:53:58 +01:00 |
|
eidheim
|
30ef094b02
|
Fixes to HTTP caching (#97)
|
2016-12-28 10:54:59 +01:00 |
|
Sébastien Huss
|
d4f5fddba3
|
Made the cache feature secured in #ifdef block and added it to the http
example too
|
2016-12-20 22:15:58 +01:00 |
|
Sébastien Huss
|
9492b942b9
|
Added support for HTTP caching in the https example
|
2016-12-20 22:02:52 +01:00 |
|
eidheim
|
88a8b154e5
|
Simplified the default_resource example
|
2016-10-24 15:41:33 +02:00 |
|
eidheim
|
7fb40a1be9
|
Reverted e50f0b597f
|
2016-10-19 10:19:51 +02:00 |
|
eidheim
|
e50f0b597f
|
Minor cleanup of default_resource example
|
2016-10-19 09:41:58 +02:00 |
|
eidheim
|
d94f6d6d27
|
Slight optimisation: less copies of shared_ptr objects
|
2016-10-19 09:16:02 +02:00 |
|
eidheim
|
7120e8aff2
|
Minor typo fix
|
2016-09-07 20:56:23 +02:00 |
|
eidheim
|
4efd3bf83c
|
default_resource examples should now always output errors
|
2016-09-07 20:34:00 +02:00 |
|
eidheim
|
1a2fe59fa9
|
Updated post json example in https_examples.cpp as well
|
2016-09-07 10:01:23 +02:00 |
|
eidheim
|
233fd31982
|
Updated work example
|
2016-06-29 12:26:11 +02:00 |
|
eidheim
|
0b397bc697
|
Added heavy work example
|
2016-06-29 10:10:34 +02:00 |
|
eidheim
|
3c3359f512
|
Improvements to default_resource examples
|
2016-06-29 00:34:58 +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 |
|
Ole Christian Eidheim
|
131cd37328
|
Examples: fixed crash in default_resource
|
2016-04-18 15:21:26 +02:00 |
|
eidheim
|
c7f35ade7f
|
Cleanup of the default_resource examples
|
2016-03-16 11:29:04 +01:00 |
|
eidheim
|
38e2d09a42
|
Replaced unsafe std::vector and its reserve with std::array in the default_resource examples
|
2016-03-11 11:22:03 +01:00 |
|
eidheim
|
c072ae7382
|
Removed a test message I forgot to remove last commit
|
2016-03-10 16:30:20 +01: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 |
|