Commit Graph

1222 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
67859e2772
Update azure-pipelines.yml 2021-10-19 15:39:27 +03:00
Benedikt-Alexander Mokroß
79e7a73043
Merge pull request #494 from bamkrs/alwaysIncludeEmptyCollectionElements
Added `alwaysIncludeEmptyCollectionElements` to `Serializer`
2021-10-19 13:42:50 +02:00
Benedikt-Alexander Mokroß
7ef7cbf0a3 Renamed alwaysIncludeEmptyCollectionElements to alwaysIncludeNullCollectionElements 2021-10-19 12:51:21 +02:00
Benedikt-Alexander Mokroß
071dd3b3ed Added alwaysIncludeEmptyCollectionElements to Serializer 2021-10-19 11:06:15 +02:00
Benedikt-Alexander Mokroß
62b9908971
Merge pull request #492 from bamkrs/keep_required_fields
Add option to include required fields in JSON even if `value == nullptr` and `includeNullFields == false`.
2021-10-15 12:57:57 +02:00
Benedikt-Alexander Mokroß
defcc35e09 Renamed honorRequired to alwaysIncludeRequired. 2021-10-15 10:50:17 +02:00
Leonid Stryzhevskyi
ac2862d984
Update README.md 2021-10-15 02:00:23 +03:00
Benedikt-Alexander Mokroß
cf9530ced5 Add option to include required fields in JSON even if value == nullptr and includeNullFields == false. 2021-10-14 11:05:35 +02:00
lganzzzo
c80047b6bd UnitTest.hpp fix includes 2021-10-14 02:30:55 +03:00
Leonid Stryzhevskyi
e9fceb93d3
Merge pull request #489 from kmeinhar/master
[UnitTest]: Added before and after methods to Unit Test
2021-10-14 00:04:37 +03:00
Kai Meinhard
6e4e30bfa2 Update src/oatpp-test/UnitTest.hpp
Co-authored-by: Benedikt-Alexander Mokroß <github@bamkrs.de>
2021-10-13 15:16:28 +02:00
Kai Meinhard
f4a178f9f7 [UnitTest]: Added before and after methods to Unit Test
There might be some setup/teardown code that is no supposed
to run in every iteration of a test.
Additionally this code is not included in the time measurement.
2021-10-13 14:54:55 +02:00
Leonid Stryzhevskyi
d9e8e0cb34
Merge pull request #486 from Garzet/master
Add ErrorHandler virtual destructor
2021-09-27 17:01:48 +03:00
Rudolf Lovrenčić
284647320d Add ErrorHandler virtual destructor
Virtual destructor added to the ErrorHandler since derived class
destructor should be called when destroying an object via a pointer to
the base type (ErrorHandler in this case).
2021-09-27 14:25:33 +02:00
Benedikt-Alexander Mokroß
0dee902a69
Merge pull request #484 from bamkrs/server_replace_connectionprovider
Add setter for `Server`s `ConnectionProvider`.
2021-09-15 17:06:39 +02:00
Benedikt-Alexander Mokroß
d14dd5be90 Lockguards around m_connectionProvider->get() 2021-09-15 10:40:36 +02:00
Benedikt-Alexander Mokroß
dbab5a7acc Synchronized setter functions.
Should we use two spinlocks (protecting two different variables)?
2021-09-15 09:28:18 +02:00
Benedikt-Alexander Mokroß
462b9c43bf Add setter for Servers ConnectionProvider.
We may need synchronization for that.
2021-09-15 09:13:56 +02:00
Leonid Stryzhevskyi
9400c3014e
Merge pull request #482 from bamkrs/replace_headers
Add API to replace headers in requests and responses (Closes #481).
2021-09-14 16:01:31 +03:00
Benedikt-Alexander Mokroß
06a690d73e Renamed replaceOrPut to putOrReplace. 2021-09-14 14:14:25 +02:00
Benedikt-Alexander Mokroß
8e9dafb9ad Actually fix #481 2021-09-14 07:13:47 +02:00
Benedikt-Alexander Mokroß
1ce3e3bd16 Add API to replace headers in requests and responses (Closes #481). 2021-09-10 08:12:14 +02:00
Leonid Stryzhevskyi
f1599f2144
Merge pull request #479 from Yadoms/fixCrossCompileWithGcc
Try to fix cross compilation for Raspberry/Synology
2021-09-08 01:53:09 +03:00
Sébastien Gallou
a39630d6d0 Try to fix cross compilation for Raspberry/Synology 2021-09-07 18:12:50 +02:00
Leonid Stryzhevskyi
777617321d
Merge pull request #456 from oatpp/#443_automatically_invalidate_connection
web::client::HttpRequestExecutor: Introduce ConnectionProxy for bette…
2021-08-05 00:32:01 +03:00
lganzzzo
177baed770 web::client::HttpRequestExecutor: Introduce ConnectionProxy for better connection management. (#443) 2021-08-05 00:18:25 +03:00
Leonid Stryzhevskyi
2fdaf6070c
Merge pull request #455 from oatpp/#443_automatically_invalidate_connection
web::client::HttpRequestExecutor: #443. Automatically invalidate clos…
2021-08-04 21:18:56 +03:00
lganzzzo
aa90bed836 web::client::HttpRequestExecutor: #443. Automatically invalidate closed connection. 2021-08-04 21:00:01 +03:00
Leonid Stryzhevskyi
c8ff271d06
Merge pull request #450 from ElementumOrg/master
Catching up with streaming changes
2021-07-29 15:49:23 +03:00
Denis Kuzmenok
bf0bd0aded Changed getKnownSize return type to v_int64 to properly deal with big sizes on 32-bit platforms. 2021-07-29 09:16:04 +02:00
Leonid Stryzhevskyi
b7d1ad5083
Merge pull request #448 from LaurentBergeron/required_dto_fields
add bool required to Property.Info
2021-07-28 23:29:56 +03:00
Laurent Bergeron
bd226e9120 add bool required to Property.Info 2021-07-27 14:52:55 -07:00
Leonid Stryzhevskyi
6c504bfb47
Merge pull request #444 from samarai-jk/master
ClientConnectionPool: close pool-connection if server has closed it
2021-07-20 08:35:20 +03:00
jk
9c3444b751 ClientConnectionPool: close pool-connection if server has closed it 2021-07-20 11:34:34 +08:00
Denis Kuzmenok
90011c2c14 Change proposed by Leonid 2021-07-02 17:53:07 +02:00
Denis Kuzmenok
27c88801be added a check for Status 206 to avoid direct body read. 2021-07-01 21:35:08 +02:00
Leonid Stryzhevskyi
ea442eae28
Merge pull request #440 from LogosDesignAS/FixForAndroidApi19
Android API 19 does not support the epoll_create1
2021-07-01 15:23:41 +02:00
Thomas Bowley
c4651919d8 Android API 19 does not support the epoll_create1 interface and should instead use the older epoll_create
See https://github.com/android/ndk/issues/394 for more information
2021-07-01 10:50:41 +02:00
Leonid Stryzhevskyi
45996bf7fc
Merge pull request #435 from Yadoms/LinkWithMsvcStaticRuntime
Add option to link with MSVC static runtime (OFF by default)
2021-06-11 12:53:41 +03:00
Sébastien Gallou
47b34ef74c Make MSVC runtime setting available for all projects 2021-06-11 09:55:01 +02:00
Sébastien Gallou
6940d26f2e Add option to link with MSVC static runtime (OFF by default) 2021-06-11 00:20:16 +02:00
Leonid Stryzhevskyi
37cab34a19
Merge pull request #428 from autoantwort/fix-localtime_r
Use always localtime_s on windows.
2021-05-11 19:56:11 +03:00
Leander Schulten
6ad5cd2791 Always use localtime_s on windows. Previously a function was used that only handles 32 bit time_t values while time_t was 64 bit 2021-05-10 21:38:32 +02:00
Leonid Stryzhevskyi
501b7cc00d
Merge pull request #427 from DavidKorczynski/master
Migrating fuzzers from oss-fuzz.
2021-05-07 19:58:02 +03:00
davkor
d107e4b658
Moved fuzzer to dedicated folder.
Signed-off-by: davkor <david@adalogics.com>
2021-05-07 17:52:17 +01:00
davkor
da43b35692
migrating fuzzers from oss-fuzz. 2021-05-07 15:10:08 +01:00
Leonid Stryzhevskyi
4588f8d1e5
Merge pull request #426 from MHaselmaier/master
Fixed compiler warnings
2021-05-06 23:53:04 +03:00
MHaselmaier
185464b155 Fixed compiler warning for unreferenced local variables and truncations on MSVC 2021-05-06 21:27:35 +02:00
Leonid Stryzhevskyi
13eaca0dc7
Merge pull request #423 from MHaselmaier/master
Fixed memory leak in move assignement operators
2021-05-03 23:42:26 +03:00
MHaselmaier
4f1e0b81d9 Fixed memory leak in move assignement operators 2021-05-03 21:59:43 +02:00