Commit Graph

1156 Commits

Author SHA1 Message Date
lganzzzo
2c6f64f750 Tests: web/FullTest - postInvalidBodyDto on a different connection 2021-02-20 17:30:02 +02:00
lganzzzo
0b3e2a18ed Merge master 2021-02-19 11:44:00 +02:00
Leonid Stryzhevskyi
9899786b23
Update README.md 2021-02-16 04:13:54 +02:00
Leonid Stryzhevskyi
f9b5c755a1
Merge pull request #390 from oatpp/fix_missing_virtual_destructors
Fix missing virtual destructors
2021-02-16 03:33:09 +02:00
lganzzzo
44813e4113 web::server::interceptor: Add missing virtual destructors for Request/Response interceptors. 2021-02-16 03:31:50 +02:00
Zach
b207ad307a
Merge pull request #1 from acidtonic/acidtonic-patch-1
Update RequestInterceptor.hpp
2021-02-15 14:57:26 -05:00
Zach
42685cf0d1
Update RequestInterceptor.hpp
Corrected virtual class with public non-virtual destructor.
2021-02-15 14:57:03 -05:00
Leonid Stryzhevskyi
255fd435af
Update 1.2.5.md 2021-02-14 23:04:06 +02:00
Leonid Stryzhevskyi
b43355c001
Merge pull request #386 from oncontroltech/master
Fix a 64bit function that was also being called when the environment …
2021-01-30 21:53:47 +02:00
Samega 7Cattac
e43af7c06e
Fix a 64bit function that was also being called when the environment is 32btis.
The function _localtime64 was being called inside a ifdef WIN32 which
makes it try to compile even when it's in a 32bti environment.
Now if it calls _localtime32 in that case.
Tested on Windows using Msys+mingw 32bit shell.

Signed-off-by: Samega 7Cattac <7Cattac@gmail.com>
2021-01-30 17:35:11 +00:00
Leonid Stryzhevskyi
50748b4011
Merge pull request #378 from oatpp/optional_query_parameters
Add optional default-value for QUERY parameters to ease the implementation of optional QUERY parameters
2021-01-12 15:15:29 +02:00
Benedikt-Alexander Mokroß
5502a0cbf0 Add optional default-value for QUERY parameters to ease the implementation of optional QUERY parameters. 2021-01-12 13:15:47 +01:00
Leonid Stryzhevskyi
6b4413552a
Merge pull request #373 from oatpp/fix_wrong_loop_call_on_conditional_nullptr_issue372
Fix wrong calling of conditional loop if condition is null (Closes #372)
2021-01-06 00:41:30 +02:00
Benedikt-Alexander Mokroß
cc7ef1b275 Fix wrong calling of conditional loop if condition is null (Closes #372( 2021-01-05 21:49:28 +01:00
Leonid Stryzhevskyi
149ddb30df
Merge pull request #365 from oatpp/conditional_server_run
WIP/Discussion: Let server check an (optional) stopping condition by itself
2021-01-04 13:11:55 +02:00
Benedikt-Alexander Mokroß
a2d423490c Correctly call conditionalMainLoop() instead of the unconditional mainLoop for the conditional run. 2021-01-04 10:17:21 +01:00
Benedikt-Alexander Mokroß
dbd02bb98d Merge remote-tracking branch 'origin/conditional_server_run' into conditional_server_run 2021-01-04 09:37:08 +01:00
Benedikt-Alexander Mokroß
de2f6cd59c Replaced erroneous pass-by-value with pass-by-reference in ClientServerTestRunner.hpp that prevented shutting down the server correctly. 2021-01-04 09:36:55 +01:00
Leonid Stryzhevskyi
ff109396f1
Merge pull request #370 from oatpp/endpoint_info_multiple_examples
Endpoint: Support multiple example values.
2021-01-03 19:34:25 +02:00
Leonid Stryzhevskyi
dea6301a30
Update 1.2.5.md 2021-01-03 19:33:24 +02:00
lganzzzo
ebeb78b1e6 Endpoint: Support multiple example values. 2021-01-03 18:38:45 +02:00
Leonid Stryzhevskyi
2ec763b814
Merge pull request #369 from oatpp/better_endpoint_info
EndpointInfo: Add example field for parameters.
2021-01-03 04:57:34 +02:00
lganzzzo
c080141884 EndpointInfo: Add example field for parameters. 2021-01-03 04:38:18 +02:00
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ß
c09798a461 Merge branch 'master' into endpoint_400 2020-12-08 17:37:23 +01: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