Commit Graph

314 Commits

Author SHA1 Message Date
antao cdcddc8ddb Modify containers of AOP 2019-06-05 09:28:39 +08:00
antao 3452a2fa1c Modify some code to get a good style 2019-05-23 18:57:45 +08:00
antao 11b6d20a69 clang-format 2019-05-18 20:39:57 +08:00
antao e696553b3d Change the callback type in Filters and AOP Advices to the r-reference type 2019-05-09 13:57:33 +08:00
antao 00049c0d23 Change the type of the callback in HTTP request handlers to r-reference type 2019-05-09 11:25:25 +08:00
antao 66c6441c96 Return index.html to the client requesting '/' 2019-05-07 23:19:26 +08:00
antao a85c64ac69 Add two configuration options: the client_max_body_size and the client_max_websocket_message_size 2019-05-07 14:04:37 +08:00
antao 0a27394cca Change version to 0.9.33 2019-05-05 15:43:17 +08:00
antao 2efa183b93 Implement gzip_static 2019-05-03 14:44:20 +08:00
antao e48692939c Modify some interfaces 2019-04-29 14:47:23 +08:00
antao fa9376b89a Change escapes from '{{}}' to '[[]]' in views 2019-04-25 14:36:42 +08:00
antao 3a587ab90b Modify the pipeling test 2019-04-07 12:15:02 +08:00
antao b96eb04859 Add WebSocket client support 2019-04-07 00:46:22 +08:00
antao 62fad73bc9 Enhance HttpClient to support pipelining 2019-04-05 01:50:29 +08:00
antao 92fa1f83e4 Update test.sh and config.example.json 2019-03-31 18:30:06 +08:00
antao 7ffd47101f Update test.sh for testing drogon_ctl 2019-03-31 00:27:12 +08:00
antao aad06fdc3a Add support for plugins 2019-03-29 15:34:14 +08:00
antao 8ae07ce195 Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in CMakeLists.txt files 2019-03-27 19:32:09 +08:00
antao ff3d87da13 Modify config.example.json 2019-03-27 13:11:02 +08:00
antao 66456eae1a 1. Add the getCustomCOnfig() method.
2. Add some comments.
2019-03-25 17:44:22 +08:00
antao 894b634b22 Adjust the execution order inside the run() method
Modify the configuration of fast database clients
Modify the ConfigLoader class
2019-03-23 11:26:21 +08:00
antao db72840fc2 Move utility functions to the utils namespace 2019-03-21 17:47:45 +08:00
antao 250781ac08 Add configuration options that limit the number of keep-alive requests 2019-03-12 18:22:13 +08:00
antao d63423545b Modify the drogon_ctl command 2019-03-09 10:31:58 +08:00
antao 801cb8aa35 Modify some database classes 2019-03-07 11:56:20 +08:00
antao b39dd52a87 Modify some comments 2019-03-06 15:57:05 +08:00
antao e0147fac8b Add an interface to set the 'Server' header field 2019-03-02 09:27:45 +08:00
antao 7f21f45a1b Add the fast db client enablation option 2019-02-20 13:23:50 +08:00
antao e7dbb3bbc5 Remove 'using namespace drogon' from public headers 2019-02-02 13:45:40 +08:00
antao 7041783579 Modify code style 2019-02-02 11:34:00 +08:00
antao 022132c33e Add json format response benchmark 2019-01-31 10:23:12 +08:00
antao 7c8432add0 Support http request in json format 2019-01-22 23:00:14 +08:00
an-tao d5d90d2f6f Modify code style 2019-01-21 23:59:28 +08:00
an-tao ef389b6ec9 Organize code style 2019-01-21 22:25:20 +08:00
antao a9e9ced331 Use references instead of values in range-based for loop 2019-01-21 17:39:31 +08:00
antao 01de7f4f1e Remove expired filter classes 2019-01-16 10:03:11 +08:00
antao 926ac48b49 Modify drogon_ctl 2018-12-29 18:02:39 +08:00
antao bc52c121d5 Add sqlite3 support to the configuration file 2018-12-29 17:17:50 +08:00
antao 3dc6e6c6c1 Modify eventloop in the Sqlite3Connection class 2018-12-29 16:56:50 +08:00
antao 787120dda4 Add support for sqlite3 models 2018-12-29 13:12:36 +08:00
antao 99a03159c5 Fix bugs of the Sqlite3ResultImpl class 2018-12-29 13:12:36 +08:00
antao 9ee1ee929c Update the drogon_ctl command to support sqlite3 2018-12-29 13:12:36 +08:00
antao e69697466d Update the submodule trantor 2018-12-24 10:47:20 +08:00
antao 3d8d74b78c Modify config.csp of the drogon_ctl command 2018-12-24 09:44:29 +08:00
antao c9f842fe93 Modify the help information of the drogon_ctl 2018-12-15 21:37:08 +08:00
antao 2f7fe56814 Modify the drogon_ctl 2018-12-15 21:21:39 +08:00
antao 71faac9fb2 Modify the drogon_ctl 2018-12-07 19:08:17 +08:00
antao 032aa19a53 Modify file formats and comments 2018-12-07 15:50:18 +08:00
antao 87153fbf3e Update the drogon_ctl 2018-12-06 14:09:40 +08:00
an-tao afe0eca5e8 Fix a compiler warning 2018-12-04 22:46:33 +08:00
antao a72fc5e433 Update the configuration file 2018-12-04 17:11:39 +08:00
antao 78c6249bd7 Modify the drogon_ctl 2018-12-03 18:39:44 +08:00
antao 52546b7846 Modify the model generator for time-type columns 2018-12-03 10:13:31 +08:00
antao 458d14591b Modify some strings 2018-12-03 10:13:31 +08:00
antao 25548eaaa0 The mysql client works 2018-12-03 10:13:31 +08:00
antao 8ed5e19f46 Modify model creation 2018-12-03 10:13:31 +08:00
antao cba0252bc1 Add FindMySQL.cmake to the project generated by drogon_ctl 2018-12-03 10:13:31 +08:00
antao a0bdcdaae3 Fix a bug of the MysqlResultImpl 2018-12-03 10:13:31 +08:00
antao 21cb1b482a Start adding mysql(mariadb) support 2018-12-03 10:13:31 +08:00
antao 81540ca19b Add a database test 2018-11-27 17:37:41 +08:00
antao cd1139cf83 Update save methods of uploaded files 2018-11-26 16:36:57 +08:00
antao 5028f0f38f Modify the creation of models 2018-11-23 23:46:58 +08:00
antao afd1bf986a jsoncpp int64 2018-11-23 19:46:59 +08:00
antao a2c349172a Modify the creation of models 2018-11-23 10:31:45 +08:00
an-tao b9c172a4a3 Add the default ctor in model classes 2018-11-22 23:46:27 +08:00
antao f829e10dfa Modify the signature of some functions 2018-11-20 14:54:51 +08:00
antao fe16066a4b Add the toJson() method to the database model 2018-11-20 14:08:08 +08:00
antao 9ee0ef6cc8 Modify the creation of models 2018-11-20 10:54:46 +08:00
antao ad37969535 1.Fix a memory bug;
2.Support for bytea type of postgreSQL;
2018-11-19 18:15:41 +08:00
antao 750d31f107 Support for trantor::Date type in database parameter binding 2018-11-17 11:40:17 +08:00
antao 13d13ed240 Organize the format of files 2018-11-16 13:26:14 +08:00
antao 7611573153 Merge branch 'master' into with_orm 2018-11-15 15:04:42 +08:00
antao fd58a419a9 Rename HttpApiController to HttpController 2018-11-15 14:31:10 +08:00
antao b61e94548e Update drogon_ctl 2018-11-15 09:17:08 +08:00
antao d3931c73fd Add database client options to the configuration file 2018-11-12 13:39:22 +08:00
antao 4b8971b258 Fix some warnings 2018-11-11 18:51:39 +08:00
antao ac795dd18f Merge commit 'c2d23ab' into orm_dev 2018-11-11 12:27:17 +08:00
antao 9d81f3217d Fix a bug 2018-11-11 12:16:26 +08:00
antao c2d23abe9f Use shared_ptr to PgClientImpl 2018-11-11 12:02:48 +08:00
antao fe877ef265 Merge branch 'master' into with_orm 2018-11-11 11:03:35 +08:00
antao 7d45746474 Update configuration file 2018-11-11 11:00:46 +08:00
antao 82c5cc1dcc Merge branch 'master' into with_orm 2018-11-11 00:58:08 +08:00
antao a50aa07cc0 Update drogon_ctl 2018-11-11 00:56:57 +08:00
an-tao 6e5eef9aaf Fix some warnings 2018-11-09 15:55:20 +08:00
antao de3c31f34b Support timestamp column type 2018-11-09 15:46:39 +08:00
antao fdb69781f2 Add a comment to the model header file 2018-11-09 15:46:39 +08:00
antao f9cc77daa0 Fix a bug of struct tm 2018-11-09 15:46:39 +08:00
antao 32a7c5aff6 Support composite primary key 2018-11-09 15:46:39 +08:00
antao 4e060b7726 Support date type in ORM 2018-11-09 15:46:39 +08:00
antao 0179816c19 Fix a bug for the system without database 2018-11-09 15:46:39 +08:00
an-tao fc7ddd5b6c Fix some warnings in linux 2018-11-09 15:46:39 +08:00
antao acaa604559 Fix some bugs in models 2018-11-09 15:46:39 +08:00
antao 6810dd261c Modify models template 2018-11-09 15:46:39 +08:00
antao 16d6caedb0 Remove 'setter' methods of auto-increasing columns 2018-11-09 15:46:38 +08:00
antao 143b62b36b Fix some bugs in creating models 2018-11-09 15:46:38 +08:00
antao d340e1cc10 Update model template files 2018-11-09 15:46:38 +08:00
antao 0d77fa1490 Improve the function of creating models 2018-11-09 15:46:38 +08:00
antao cae30230c3 Add the create DAO method to drogon_ctl, not completed 2018-11-09 15:46:38 +08:00
antao 882a8f8090 Change the registerHttpApiMethod method to a non-static method 2018-11-09 15:21:53 +08:00
antao 2fc9ecdc7c Update drogon_ctl 2018-10-31 17:33:15 +08:00
antao af53337a6a Add configuration options to the configuration file for simple controller mapping 2018-10-21 14:52:41 +08:00
antao 2fcbc5600f Add 'create filter' sub-command in drogon_ctl 2018-10-20 17:36:14 +08:00
antao 183a31831f Add 'create filter' sub-command in drogon_ctl 2018-10-20 17:35:52 +08:00
antao fcb2ab7880 HttpMethod 2018-10-20 13:45:17 +08:00
antao 2008b1fce6 Add drogon.h for drogon users 2018-10-18 15:54:57 +08:00
antao 8df7b9c69a Update CMakeLists.txt for using older basename command 2018-10-17 18:43:51 +08:00
antao 1b37db12e0 Update cmake template file in drogon_ctl 2018-10-17 14:00:23 +08:00
antao c86ec77d26 Add support for view nesting 2018-10-17 13:48:28 +08:00
antao 4f8dbfa5d9 Add DrTemplate class implementing a simple but powerful template language for C++ 2018-10-17 10:50:51 +08:00
an-tao a50ba92ee0
Merge pull request #4 from an-tao/remove_boost_any
Use std::experimental::any to instead of boost::any in early version gcc
2018-10-16 13:01:57 +08:00
antao 112a541044 Change version to 0.9.4 2018-10-16 11:18:29 +08:00
antao 23b8d7447a Remove boost::any 2018-10-16 10:59:32 +08:00
an-tao e3ee8873c5 Modify drogon_ctl 2018-10-15 22:46:53 +08:00
antao 4ac5544a54 Optimize files caching 2018-10-15 15:58:11 +08:00
antao b539b5231c Modify drogon_ctl 2018-10-15 13:34:38 +08:00
antao c9b3dcd9c2 Format all files 2018-10-14 15:56:54 +08:00
antao 93a07ed17a 1.Add gzip option in config file;
2.rename config example file's name
2018-10-14 11:53:05 +08:00
antao 0c6f39c34d Modify create view command of drogon_ctl 2018-10-05 19:17:12 +08:00
an-tao 2d6dbc8893 Modify drogon_ctl 2018-09-25 22:45:47 +08:00
an-tao 0d3e9e6e74 Fix some compilation warnings 2018-09-25 21:46:26 +08:00
antao 868ac73345 Update CMakeLists.txt 2018-09-16 15:31:25 +08:00
an-tao 1fafb8289c Fix drogon_ctl bug 2018-09-15 22:58:48 +08:00
antao fd78b4eb40 Modify drogon_ctl 2018-09-15 22:52:59 +08:00
antao 077f641d75 Modify drogon_ctl 2018-09-15 22:35:43 +08:00
antao 1db4e6bcd5 Modify drogon_ctl 2018-09-15 22:18:06 +08:00
antao c62f681b2c Modify drogon_ctl 2018-09-15 11:10:29 +08:00
antao aaea4fb5ca Update CMakeLists.txt 2018-09-14 23:54:06 +08:00
antao a6c21037c5 Modify drogon_ctl 2018-09-12 17:09:08 +08:00
antao 841391870e Modify drogon_ctl 2018-09-12 10:31:30 +08:00
antao 2c1fd4cee0 Modify drogon_ctl 2018-09-10 18:06:00 +08:00
antao 1cf7ef84b2 Update drogon_ctl 2018-09-07 19:03:31 +08:00
antao 6fbfe28506 Update status code 2018-09-06 19:06:25 +08:00
antao d40190f452 Add creating project function in drogon_ctl 2018-09-04 14:50:18 +08:00
antao 2cff4a3457 Update METHOD_ADD macro 2018-08-30 10:18:04 +08:00
antao 8788d0359d Add filters chain before websocket controller 2018-08-27 16:07:36 +08:00
antao 68d05dae47 Modify callback function signature 2018-08-26 16:25:35 +08:00
antao 1faa4937a3 Fix some bugs 2018-08-23 18:05:17 +08:00
antao 0e95e10c2b Websocket frame parsing 2018-08-22 18:20:54 +08:00
antao c0acf347a3 Modify drogon_ctl 2018-08-22 15:08:48 +08:00
antao aa8170ff18 Modify drogon_ctl 2018-08-22 14:27:45 +08:00
antao 99ba19ebca change doFilter interface 2018-08-02 15:38:06 +08:00
an-tao 8142fc6bf7 update CMakeLists.txt 2018-06-28 23:12:44 +08:00
root 82855fc86e fix precompiled bugs 2018-06-23 11:22:20 +00:00
an-tao e805faea8e use config.h to configure std::any or boost::any 2018-06-15 15:58:54 +08:00
an-tao cc35b08580 support dynamic libs compiling and loading 2018-06-14 18:51:26 +08:00
an-tao 95b83206fb Write the compilation configuration to config.h 2018-06-14 14:25:57 +08:00
an-tao beb7ae2b5d modify drogon_ctl help command 2018-06-07 18:16:30 +08:00
an-tao 132e887337 fix a spelling error 2018-06-07 16:38:45 +08:00
an-tao 006cfdd898 command for creating api controller;todo:fix regex match bug 2018-06-06 21:40:48 +08:00
an-tao 3f69aafec8 create api controller command,not complete yet 2018-06-06 18:29:05 +08:00
an-tao 6004b633af change http callback interface 2018-06-05 09:38:03 +08:00
an-tao 0a80323f84 fix some bugs 2018-06-01 14:07:34 +08:00
an-tao 2875656d82 fix iterator bug 2018-05-31 18:56:07 +08:00
an-tao de6e93da66 modify the file annotations 2018-05-31 17:00:31 +08:00
an-tao 1aaa65fff7 replace bare pointers with shared_ptr in HttpReponse static methods;fix a delete bug 2018-05-30 21:23:46 +08:00
an-tao 7b7a426f85 modify the output format of drogon_ctl 2018-05-30 18:22:46 +08:00
an-tao 612fee9ef0 add a list parameters example 2018-05-30 17:44:09 +08:00
an-tao 466a761805 fix include header bugs 2018-05-29 21:24:04 +08:00
an-tao 30ab716c6b add HttpView to support html backend rendering 2018-05-29 17:21:37 +08:00
an-tao ffd652c4e0 fix indentation bug 2018-05-29 13:57:10 +08:00
an-tao 526485a139 drogon_ctl: add create controller command 2018-05-29 13:49:26 +08:00
an-tao aea79fd9a8 drogon_ctl add help command 2018-05-28 18:29:14 +08:00
an-tao 56542a68d2 drogon_ctl add version command 2018-05-28 17:08:12 +08:00
an-tao 3578674fa5 add version 2018-05-28 14:34:47 +08:00