Commit Graph

1181 Commits

Author SHA1 Message Date
Benedikt-Alexander Mokroß
ba5e582bc8 Implemented review changes from @lganzzzo and marked run(bool) as deprecated 2020-12-31 22:03:40 +01:00
Benedikt-Alexander Mokroß
86ae1132ca WIP/Discussion: Let server check an (optional) condition if it should continue to loop.
Instead of an external invocation of `stop()` to stop a running server, one could pass an lambda that returns true when the server should continue to run or false if it should stop.
Ideally this function should return as fast as possible and only do minimal amount of work. Like an interrupt function in µC.
This would ease the implementation of simple stopping mechanism that do not require external threads or other management.
For more complex functions, the minimal `bool()` function can be bound with `std::bind` to pass parameters etc.
2020-12-29 14:26:55 +01:00
lganzzzo
3cf5e8cab7 Fix: parameters order warning. 2020-12-25 02:25:40 +02:00
lganzzzo
58293e5cb7 Update the '1.2.5' changelog. 2020-12-23 03:53:05 +02:00
lganzzzo
3ccb178e6d network::tcp::server::ConnectionProvider: include - netinet/tcp.h 2020-12-21 04:09:25 +02:00
Leonid Stryzhevskyi
12572b0fb9
Merge pull request #362 from oatpp/v1.2.5
V1.2.5
2020-12-21 03:11:36 +02:00
lganzzzo
466bae488f Update oatpp API version to 1.2.5 2020-12-21 02:51:29 +02:00
lganzzzo
7d150c1b2b Merge branch 'v1.2.5' of github.com:oatpp/oatpp into v1.2.5 2020-12-21 02:46:10 +02:00
lganzzzo
f89496563b Update README news. 2020-12-21 02:46:01 +02:00
Leonid Stryzhevskyi
764233125e
Merge pull request #361 from oatpp/optimize_includes
remove unused includes
2020-12-21 02:36:36 +02:00
lganzzzo
dd9fd93450 remove unused includes 2020-12-21 02:04:13 +02:00
Leonid Stryzhevskyi
3b0e006614
Merge pull request #360 from oatpp/better_connection_handling
server::HttpProcessor: Refactor connection handling.
2020-12-21 01:52:32 +02:00
lganzzzo
ea0ec5f059 server::HttpProcessor: Refactor connection handling. 2020-12-20 21:57:18 +02:00
Leonid Stryzhevskyi
c4775411e6
Merge pull request #359 from oatpp/non_unique_key_headers
Non unique key headers
2020-12-17 11:13:45 +02:00
lganzzzo
7d76773d17 http::Header. Use multimap. (#357) 2020-12-17 03:25:09 +02:00
lganzzzo
ede1a792cf data::share: introduce LazyStringMapTemplate. 2020-12-17 01:40:02 +02:00
lganzzzo
0150ec0d8c ResponseInterceptor should also know about the corresponding request. 2020-12-12 04:15:18 +02:00
Leonid Stryzhevskyi
99450a1f62
Merge pull request #353 from oatpp/optimize_includes
Environment.hpp: optimize includes.
2020-12-09 02:23:22 +02:00
lganzzzo
885d641a0f Environment.hpp: optimize includes. 2020-12-09 01:37:36 +02:00
Leonid Stryzhevskyi
1559050586
Merge pull request #352 from oatpp/logcategories
Introducing log-categories
2020-12-09 01:29:17 +02:00
Benedikt-Alexander Mokroß
a6b481eb5d Introducing log-categories
With log-categories users of Oat++-logging can take advantage of a fine grained logging mechanism.
Each log-category has its own set of enabled priorities, its own tag and can be disabled/enabled altogether.
Instead of just offering some priority-levels the user can now create as much logging categories as s:he wants and tune visibility of priorities by each category.
The API can be used optionally on top of the default logging mechanisms without breaking or changing any functionality of the old system. One can even mix both "legacy-style" and "category-style" logging in the same function/class/program.

Signed-off-by: Benedikt-Alexander Mokroß <github@bamkrs.de>
2020-12-08 16:59:53 +01:00
Leonid Stryzhevskyi
ec501d70f1
Merge pull request #351 from oatpp/cors_global_interceptors
web::server::interceptor: introduce AllowCorsGlobal and AllowOptionsG…
2020-12-07 03:32:57 +02:00
lganzzzo
1186568407 web::server::interceptor: introduce AllowCorsGlobal and AllowOptionsGlobal interceptors. 2020-12-07 03:25:46 +02:00
lganzzzo
d0e2b0ecf5 Merge branch 'master' into v1.2.5 2020-12-07 01:48:49 +02:00
Leonid Stryzhevskyi
25e465b4be
Merge pull request #349 from sileht/patch-1
docs: typo Construcotor -> Constructor
2020-12-02 15:12:05 +02:00
Mehdi ABAAKOUK
ecb19e2a0c
docs: typo Construcotor -> Constructor 2020-12-02 14:08:18 +01:00
Leonid Stryzhevskyi
9a2facbac1
Merge pull request #347 from oatpp/better_interceptors
Better interceptors
2020-11-29 20:39:24 +02:00
lganzzzo
0cce51d6e3 web::server: optimize includes for ConnectionHandler.hpp and AsyncConnectionHandler.hpp 2020-11-29 20:01:20 +02:00
lganzzzo
6bbc68abd9 Tests: uncomment all tests. 2020-11-29 19:55:59 +02:00
lganzzzo
e6a302a905 web::server::interceptor: introduce ResponseInterceptor. 2020-11-29 19:52:23 +02:00
lganzzzo
4d3b82d68b web::server::HttpProcessor: process routing after request interceptors. 2020-11-29 18:13:27 +02:00
lganzzzo
f42df615e2 Create 1.2.5 changelog 2020-11-29 17:32:07 +02:00
Leonid Stryzhevskyi
0b9ec507ef
Merge pull request #344 from oatpp/router_template
web::server::HttpRouter. Introduce HttpRouterTemplate. (#343)
2020-11-23 01:24:58 +02:00
lganzzzo
171f7a9943 web::server::HttpRouter. Introduce HttpRouterTemplate. (#343) 2020-11-22 20:12:51 +02:00
Leonid Stryzhevskyi
a919b078ed
Merge pull request #334 from oatpp/fix_centos_build
Tests. StringTemplateTest. Fix ambiguity in the method call.
2020-10-30 03:29:14 +02:00
lganzzzo
50e06cbaa0 Tests. StringTemplateTest. Fix ambiguity in the method call. 2020-10-30 02:18:05 +02:00
Leonid Stryzhevskyi
8f1c11ae53
Merge pull request #330 from oatpp/update_readme
Update README.md + '1.2.0' changelog
2020-10-27 03:35:50 +02:00
lganzzzo
2fc20ccdfd Update README.md + '1.2.0' changelog 2020-10-27 03:31:30 +02:00
Leonid Stryzhevskyi
84431561b5
Merge pull request #327 from eviveraart/fix/compile-issue-clang
Fixed compile issue on clang 7.0.1
2020-10-23 17:47:59 +03:00
Evi Veraart
54ab93049d Fixed compile issue on clang 7.0.1 2020-10-23 16:06:11 +02:00
lganzzzo
4242412180 Codegen. Fix ADD_CORS macro. (#325) 2020-10-22 00:48:16 +03:00
Leonid Stryzhevskyi
2d8711307e
Merge pull request #323 from oatpp/windows_fix_gai_strerror
network::tcp::client::ConnectionProvider: Do not use gai_strerror on …
2020-10-16 07:18:39 +03:00
lganzzzo
90a474e829 network::tcp::client::ConnectionProvider: Do not use gai_strerror on Windows (#322) 2020-10-16 06:49:08 +03:00
Leonid Stryzhevskyi
28b1dd934e
Update README.md 2020-10-12 05:53:42 +03:00
Leonid Stryzhevskyi
8a07e8f18b
Merge pull request #319 from oatpp/type_resolver
Type resolver
2020-10-09 02:16:25 +03:00
lganzzzo
1897d42cd3 orm::Executor: do not pass typeResolver to parseQueryTemplate method. 2020-10-09 01:54:54 +03:00
lganzzzo
e8bc2b0759 Tests: uncomment all tests. 2020-10-08 00:26:03 +03:00
lganzzzo
6f84101afc mapping::TypeResolver: Use cache. Remove property traverser. 2020-10-08 00:22:52 +03:00
lganzzzo
dab59a48d6 data::mapping: Introduce TypeResolver. 2020-10-07 03:43:52 +03:00
Leonid Stryzhevskyi
11facca068
Merge pull request #317 from oatpp/connection_provider_addrinfo_leak_fix
tcp::server::ConnectionProvider: Fix addrinfo leak (#315)
2020-10-03 05:37:39 +03:00