eidheim
|
14c0e3a3a3
|
Applied style format
|
2020-09-16 14:53:02 +02:00 |
|
eidheim
|
c6c7d0a6f2
|
Related to !248: completed synchronous request() fixes
|
2020-02-19 10:45:05 +01:00 |
|
eidheim
|
22adbf7802
|
Added missing header to examples
|
2019-12-30 18:58:18 +01:00 |
|
eidheim
|
a5fcd2ba0d
|
Updated examples using start callback
|
2019-12-30 18:53:02 +01:00 |
|
eidheim
|
a1d8282918
|
Deprecated Request::remote_endpoint_address() and Request::remote_endpoint_port()
|
2019-09-17 10:59:21 +02:00 |
|
eidheim
|
0eeb972b51
|
Extended the usage documentation, and added additional output in the example files, as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-516803423
|
2019-07-31 22:21:44 +02:00 |
|
eidheim
|
56b1df1ee5
|
Moved SimpleWeb::string_view to utility.hpp, and made use of string_view in Server::Response::write
|
2018-07-12 08:43:07 +02:00 |
|
eidheim
|
6381ee1d31
|
Fixes #146: added comment to server.on_error examples regarding connection timeouts
|
2018-01-25 10:24:46 +01:00 |
|
eidheim
|
aa974d7291
|
Applied newer clang-format on http(s)_examples
|
2017-11-18 09:58:48 +01:00 |
|
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
|
53c9ff64c0
|
Corrected on_error's error_code parameter
|
2017-07-05 17:42:18 +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
|
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
|
acea17162c
|
oups again, it should have been painless. At least I reviewed my commit
|
2016-12-20 22:27:40 +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 |
|
eidheim
|
8a73cb381a
|
Fixes #86: can now set timeout on client requests
|
2016-11-23 07:01:48 +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
|
b44fdc8183
|
Minor cleanup of post json example
|
2016-09-07 09:59:04 +02:00 |
|
Arash
|
dd41fb3265
|
Update http_examples.cpp
|
2016-09-04 17:57:31 +10:00 |
|