Commit Graph

441 Commits

Author SHA1 Message Date
MHaselmaier
c400ad91b8 Implemented requested changes 2021-05-05 08:06:00 +02:00
MHaselmaier
5f796de690 Removed unused include; touched up formatting 2021-05-04 19:46:59 +02:00
MHaselmaier
c92567632e Added optional timeout parameter to core::provider::PoolTemplate::get 2021-05-04 19:33:58 +02:00
lganzzzo
92ed4b72a2 Types: oatpp::Void now is a special type of ObjectMapper. 2021-04-13 23:37:47 +03:00
lganzzzo
102394f798 ObjectWrapper: non-const valueType 2021-04-13 22:41:50 +03:00
lganzzzo
247c994171 oatpp::String: more convenient methods. 2021-04-02 23:14:23 +03:00
lganzzzo
15f77f1ed2 Codegen: INIT_DTO macro - remove default constuctor. 2021-03-30 00:16:02 +03:00
lganzzzo
b49f02f438 Tests: uncomment all tests. 2021-03-25 04:28:28 +02:00
lganzzzo
a2631fe051 Types: Refactor oatpp::String to use std::string. 2021-03-25 04:17:03 +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
lganzzzo
7d76773d17 http::Header. Use multimap. (#357) 2020-12-17 03:25:09 +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
lganzzzo
171f7a9943 web::server::HttpRouter. Introduce HttpRouterTemplate. (#343) 2020-11-22 20:12:51 +02:00
lganzzzo
50e06cbaa0 Tests. StringTemplateTest. Fix ambiguity in the method call. 2020-10-30 02:18:05 +02: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
lganzzzo
222cdaaa91 Tests: Uncomment all tests. 2020-09-28 03:31:09 +03:00
lganzzzo
3b59fa2738 network: introduce oatpp::network::Address. 2020-09-27 03:59:33 +03:00
lganzzzo
05d5e4dd4f oatpp::network. Refactor: move/rename SimpleTCPConnectionProvider, Connection, ConnectionHandler, Server. 2020-09-27 02:47:30 +03:00
lganzzzo
0856eda7c1 Codegen. ApiClient: Add 'API_CALL_HEADERS' macro for default headers. (#252) 2020-09-26 04:33:26 +03:00
lganzzzo
fa64e582b3 Introduce type::BaseObject::PropertyTraverser. 2020-09-23 04:18:46 +03:00
lganzzzo
fe2bec58f8 mapping::type: Simplify Type interface. 2020-09-19 13:52:43 +03:00
lganzzzo
26154e039c Merge branch 'master' into v_1.2.0 2020-09-09 05:43:10 +03:00
lganzzzo
898da6ff13 Tests. Decrease number of 'real-port' tests iterations 2020-09-09 05:08:54 +03:00
lganzzzo
4e650bcd4f server::SimpleTCPConnectionProvider. List getaddrinfo results. 2020-09-09 04:24:19 +03:00
lganzzzo
d6911eb77a data::mapping. Introduce Type::Interpretation. 2020-08-20 05:04:40 +03:00
lganzzzo
e7793aa667 Merge branch 'v_1.2.0' into ql_client_draft 2020-08-04 04:15:11 +03:00
lganzzzo
63e75bd67e Merge branch 'master' into v_1.2.0 2020-08-04 00:40:02 +03:00
lganzzzo
3a5c9cb491 Tests. Uncomment web::FullTest. 2020-08-03 03:49:59 +03:00
lganzzzo
6a569888ea web::protocol::http::outgoing::MultipartBody. Correct Async processing of continuous multipart stream. 2020-08-03 03:48:19 +03:00
lganzzzo
678219180c Multipart. Continuous streaming - Async POC. 2020-08-02 11:40:19 +03:00
lganzzzo
6c3195a84d Merged with v1.2.0 branch. 2020-08-02 02:10:14 +03:00
lganzzzo
d24da6a0ef Merge with v1.2.0 branch 2020-07-31 03:46:22 +03:00
lganzzzo
e1d4020e2e provider::PoolTest. Increase timeout for Pool to drop unused resources. 2020-07-30 03:44:18 +03:00
lganzzzo
d8a2384cc6 provider::Pool. Inherit optional properties of the base provider. 2020-07-30 02:05:28 +03:00
lganzzzo
4cded07f08 provider::Pool. POC. 2020-07-29 04:51:49 +03:00
lganzzzo
e889642188 network::ConnectionProvider. Basic refactoring - extend provider::Provider, new method names. 2020-07-29 02:03:26 +03:00
lganzzzo
57456a0b3a provider::Pool. Cleanup task. 2020-07-29 01:36:53 +03:00
devuser
6eea6191ba Adds pattern to the info, to be used in swagger 2020-07-27 18:49:28 -05:00
lganzzzo
d806537e51 oatpp::provider. New Provider and Pool implementation draft. 2020-07-26 04:52:11 +03:00
lganzzzo
c3a91be239 oatpp::data::stream::BufferOutputStream. Optimize growth. 2020-07-19 03:03:36 +03:00
lganzzzo
43c5d63386 oatpp::data::stream::BufferOutputStream. Optimize growth. 2020-07-19 02:59:14 +03:00
lganzzzo
33aae43d02 Merge branch 'master' into ql_client_draft 2020-07-08 14:45:39 +03:00
lganzzzo
a6aaa1eb48 data::share::StringTemplate. Format string template using ValueProvider. 2020-07-06 02:39:20 +03:00
Benedikt-Alexander Mokroß
ad69f19757 Proposal for #261: Implemented Leonids input 2020-07-05 18:24:57 +02:00
Benedikt-Alexander Mokroß
2d6ab88255 Proposal for #261: Fine grained configurable Loglevel 2020-07-01 20:35:19 +02:00
lganzzzo
b026a007e9 ql::Client. First steps. 2020-06-27 03:55:52 +03:00
lganzzzo
24c18ad166 CMakeLists.txt. Add compat option 'OATPP_COMPAT_BUILD_NO_SET_AFFINITY' 2020-06-05 00:49:07 +03:00
lganzzzo
1c0aea3f88 DTO. Introduce the new oatpp::Object<T> - as an ObjectWrapper over oatpp::DTO. 2020-05-23 03:27:22 +03:00
lganzzzo
0ec5fb7822 DTO. Rename oatpp::Object --> oatpp::DTO. 2020-05-23 02:58:31 +03:00
lganzzzo
ed0c068c0c DTO. Remove inconsistent Wrapper definitions. 2020-05-23 02:45:37 +03:00
lganzzzo
fe8bf161fe type::Enum. Fix duplicate initialization. 2020-05-19 03:48:29 +03:00
lganzzzo
32ae087417 mapping::type::PairList. Add 'getValueById()' method. 2020-05-17 03:25:08 +03:00
lganzzzo
eb92c2a60c oatpp::Enum. Hash function. 2020-05-16 15:30:22 +03:00
lganzzzo
4b94aa771f DTO. createShared(...) with parameters. 2020-05-16 01:51:05 +03:00
lganzzzo
3bc7dad57e DTO. Lazy initialization of properties list. 2020-05-16 00:28:45 +03:00
lganzzzo
87edb02e6d DTO. Hashcode + Equals. Use address comparison by default. 2020-05-14 00:53:48 +03:00
lganzzzo
4a0aaa2a84 DTO. Hashcode + equals contract for DTOs. 2020-05-13 03:12:39 +03:00
lganzzzo
5f213dd853 parser::json. Add ser/de for oatpp::UnorderedSet. 2020-05-10 02:59:31 +03:00
lganzzzo
70e898f86d Tests. UnorderedSet test. 2020-05-10 02:20:59 +03:00
lganzzzo
75675ae61a data::mapping. Collections. Add UnorderedSet. Initial commit. 2020-05-10 01:55:43 +03:00
lganzzzo
4d6629395d ApiClient. Enum support. 2020-05-09 18:10:07 +03:00
lganzzzo
a124a5c510 ApiController. Integrate oatpp::Enum with ApiController. 2020-05-09 05:07:21 +03:00
lganzzzo
1d63dd547e oatpp::Enum. Add description. 2020-05-09 02:56:47 +03:00
lganzzzo
9ee3c80626 parser::json. Correct Enum Ser/De. 2020-05-08 04:10:07 +03:00
lganzzzo
babeec5e2c parser::json. Enum Ser/De. 2020-05-08 00:52:46 +03:00
lganzzzo
cff565f788 dto::Enum. Make static enum info a singleton. 2020-05-07 03:16:04 +03:00
lganzzzo
0de8204ad4 Tests. mapping::type::Enum. Enum ObjectWrapper test. 2020-05-06 05:15:03 +03:00
lganzzzo
bfcb159b48 dto::Enum. Enum interpreters POC. 2020-05-06 03:41:18 +03:00
lganzzzo
66d34683f7 DTO. Enum. Populate metadata. 2020-05-04 04:55:45 +03:00
lganzzzo
100a59eb69 Multipart. Tests. Simple multipart/x-mixed-replace example. 2020-05-03 04:36:50 +03:00
lganzzzo
55a6871891 Multipart. Stream part-by-part 2020-05-03 03:37:13 +03:00
lganzzzo
b52eeed67a DTO Enum. Bootstrap code-gen. 2020-05-02 03:31:59 +03:00
lganzzzo
7ed6069f11 type::Primitive. Fix conversions. 2020-05-02 00:31:32 +03:00
lganzzzo
fd73b3c7c1 Tests. Uncomment all tests. 2020-04-30 04:44:42 +03:00
lganzzzo
196d351de6 types::Boolean. operators ==, != for nullptr. 2020-04-30 04:35:20 +03:00
lganzzzo
0d3ae75b13 Windows. type::Boolean. Fix nullptr/bool conversion. 2020-04-30 04:22:09 +03:00
lganzzzo
6c9c8d3237 type::Primitive. Add hash-function for all primitives. 2020-04-30 03:48:06 +03:00
lganzzzo
11c7be7a50 type::Primitive: Make boolean a separate ObjectWrapper. Tests: Primitive test. 2020-04-30 03:04:15 +03:00
lganzzzo
76da4714c2 Tests. Add mapping::type::<collections> tests. 2020-04-29 23:04:42 +03:00
lganzzzo
04707aa23d types. Simplify Primitives. 2020-04-29 05:03:47 +03:00
lganzzzo
ed242a8066 mapping::type. Add oatpp::Vector and oatpp::UnorderedFields support to json Ser/De. 2020-04-29 03:30:05 +03:00
lganzzzo
7c12d6f16d mapping::type. Add UnorderedMap collection. 2020-04-29 02:17:26 +03:00
lganzzzo
eb116ef23b mapping::type. Rename ListMap --> PairList. 2020-04-29 01:47:40 +03:00
lganzzzo
bd8330e06d mapping::type. Update ListMap. 2020-04-29 01:31:17 +03:00
lganzzzo
98d57fbb7a mapping::type. Simplify collections. 2020-04-29 00:07:26 +03:00
lganzzzo
eacbe79d01 Introduce oatpp::Vector. Refactor oatpp::List to use std::list. 2020-04-28 04:26:29 +03:00
lganzzzo
6f6336c1a3 ApiController, ApiClient. Oprimize parameters passing. '::ObjectWrapper' in parameters is now redundant. 2020-04-27 01:51:33 +03:00
lganzzzo
6acd2c3f39 DTOs. Do not explicitly write <Type>::ObjectWrapper. 2020-04-26 15:13:33 +03:00
lganzzzo
130962e71a Tests. Add more AnyTest logs. 2020-04-26 11:27:56 +03:00
lganzzzo
23255f381d ObjectWrapper. Reduce the hierarchy. Remove PolymorphicWrapper. 2020-04-26 03:41:20 +03:00
lganzzzo
1cca52034f parser::json::Deserializer. Deserialize oatpp::Any. 2020-04-25 05:16:05 +03:00
lganzzzo
7871cd7326 parser. JSON. Beautifier. Fix indent. 2020-04-25 03:58:32 +03:00
lganzzzo
636a2133e9 Parser. JSON. Serialize Any. 2020-04-25 03:33:59 +03:00
lganzzzo
0d951e3c56 Types. Introduce Any. 2020-04-25 02:54:52 +03:00
lganzzzo
aaa6359d80 SimpleTCPConnectionProvider. Correct invalidateConnection() method. 2020-04-11 00:01:25 +03:00
Benedikt-Alexander Mokroß
328519e6c1 Response Description (Issue #212) 2020-04-02 13:55:11 +02:00
lganzzzo
51fbc2b4ea Fix memory leak. Correct type for array. 2020-02-14 17:42:46 +02:00
lganzzzo
a1ff01ce9c Better API Docs. 2020-01-25 01:48:37 +07:00
lganzzzo
f65798957e json::mapping::ObjectMapper. Support for unsigned int types. 2020-01-25 01:26:35 +07:00
lganzzzo
7f82cc7bc5 json::mapping::ObjectMapper. Remove old Deserializer. 2020-01-22 23:03:45 +07:00
lganzzzo
de9296d287 json::mapping::ObjectMapper. New deserializer. 2020-01-22 23:00:28 +07:00
lganzzzo
fc26498f45 json::mapping::ObjectMapper. Remove old Serializer. 2020-01-22 11:11:21 +07:00
lganzzzo
3c5c0d8f67 json::ObjectMapper. New configurable Serializer. 2020-01-22 11:02:02 +07:00
lganzzzo
e457d14765 'ClassId' structure with explicit int IDs instead of 'CLASS_NAME' addresses 2020-01-21 19:49:21 +07:00
lganzzzo
884e1683c0 Tests. Uncomment all tests. 2020-01-20 06:00:18 +07:00
lganzzzo
cb197bf05c HttpProcessor. Simple API. Select ContentEncoder according to 'Accept-Encoding' request header. 2020-01-15 06:27:32 +02:00
lganzzzo
25233d66ea http::outgoing::Request/Response. Check for EncoderProvider when sent. 2020-01-14 23:49:08 +02:00
lganzzzo
c639a58e69 http::outgoing. Remove redundant DtoBody. 2020-01-14 17:32:18 +02:00
lganzzzo
ddafe4207f Refactor. Simplify web::protocol::http::outgoing::Body 2020-01-14 16:31:18 +02:00
lganzzzo
ae85446432 Tests. Uncomment All. 2020-01-09 03:53:01 +02:00
lganzzzo
e5f24a8e55 IO. intruduce 'isValidIoHandle' function. Refactor. Change folder of IODefinitions.hpp 2020-01-09 03:38:34 +02:00
lganzzzo
121d079e7d Tests. Correct async::Executor stop. 2020-01-09 02:01:02 +02:00
lganzzzo
292647ca93 server::SimpleTCPConnectionProvider use select-accept. 2020-01-09 01:17:16 +02:00
lganzzzo
e3e6d4c004 Tests. Uncomment web tests. Increase number of iterations. 2020-01-08 01:26:01 +02:00
lganzzzo
34f6bc80d4 Comment test out 2020-01-08 00:47:58 +02:00
lganzzzo
11e154735c Log Connection. 2020-01-08 00:40:44 +02:00
lganzzzo
be993494b5 Tests. Reduce amount of iterations 2020-01-07 19:55:07 +02:00
lganzzzo
e3630f9df4 Tests. Comment tests. 2020-01-07 19:21:15 +02:00
lganzzzo
1a311de239 Tests. Uncomment All. 2020-01-07 18:35:14 +02:00
Leonid Stryzhevskyi
642ce18656
Fix windows ci build (#178)
* log request headers reader

* Tests. Pipeline run test on real port

* Log transfer pipe in

* Log tranfer write

* disable other tests

* log connection

* More logs for connection

* Check connection stream mode before returning IOAction.

* Fix connection stream mode check on Windows.

* Tests. Fix PipelineTest.

* Tests. Remove logging, and uncomment test.
2020-01-07 18:33:31 +02:00
lganzzzo
9f793a3771 Tests. CI. Test PipelineAsyncTest. 2020-01-07 15:06:29 +02:00
lganzzzo
d212fb843a Tests. CI. Log root endpoint. 2020-01-07 14:49:48 +02:00
lganzzzo
67991f8d74 Tests. Comment tests. web/PipelineTest. Log readResult. 2020-01-07 12:39:09 +02:00
lganzzzo
042765a00f Tests. web/PipelineTest. Log readResult. 2020-01-07 12:19:17 +02:00
lganzzzo
7a23c33420 Tests. Windows. PipelineTest more logs. 2020-01-07 03:07:10 +02:00
lganzzzo
80c4a91090 Fix Windows build 2 2020-01-07 02:54:13 +02:00
lganzzzo
8dd39ca65d Greed Testsgit add --all
q
2020-01-07 02:35:32 +02:00
lganzzzo
ce46616075 Fix multipart write/read. 2020-01-07 02:10:48 +02:00
lganzzzo
cff4bdf7bf Fix http::outgoing::ChunkedBody 2020-01-06 23:02:33 +02:00
lganzzzo
5d82f67816 Introduce web::protoco::encoding::Chunked. Encoder/Decoder 2020-01-06 16:43:10 +02:00
lganzzzo
26c5183654 Refactor. Switch to the new stream::transfer function. 2020-01-06 12:05:20 +02:00
lganzzzo
1de0c3d86a data::stream. Introduce better transferAsync function. 2020-01-06 00:44:37 +02:00
lganzzzo
dd18033a36 data::stream. Introduce better transfer function. 2020-01-05 22:28:47 +02:00
lganzzzo
aca6db6107 Introduce data::buffer::Processor. 2020-01-04 04:36:13 +02:00
lganzzzo
2cfef00127 Refactor stream interfaces. Rename stream inline read/write data. 2020-01-03 11:01:55 +02:00
lganzzzo
b2eaf749e8 Refactor stream interfaces. Tests. Fix pipelining tests. 2020-01-02 00:06:19 +02:00
lganzzzo
6e8a12885d Refactor stream interfaces. Linking OK. Fixing tests - first steps. 2020-01-01 23:33:51 +02:00
lganzzzo
14c53ee1a1 Refactor stream interfaces. Simplify and Unify. Compiles. Link errors. 2020-01-01 03:00:54 +02:00
lganzzzo
bc5df03d05 Refactor. Multipart reader. 2019-12-30 16:56:49 +02:00
lganzzzo
a99b5933eb Refactor. Streams hierarchy V2. Compiles. 2019-12-28 23:22:05 +02:00
lganzzzo
52e1e4835e Refactor. Streams hierarchy V2. 2019-12-28 17:34:56 +02:00
lganzzzo
30e0f7ad1e Tests. Add retries for FullAsyncClientTest. 2019-12-25 19:09:03 +02:00
lganzzzo
8fd96027e5 Stream Context. Input/Output stream return Context by reference. 2019-12-10 16:22:52 +02:00
lganzzzo
6e5701c298 Introduce stream::Context. 2019-12-08 04:24:42 +02:00
lganzzzo
5ef313004b Refactor. More consistent integer types. 2019-11-23 04:11:48 +02:00
lganzzzo
6ba549c99a merge with upstream 2019-11-22 17:40:36 +02:00
Bob Tolbert
5698e1baf7 remove unused variable warning 2019-11-22 04:56:07 -07:00