Commit Graph

278 Commits

Author SHA1 Message Date
antao
92e64a79ec Fix a bug that occurs when a path argument contains spaces 2019-05-31 09:43:23 +08:00
antao
fc7505122f Update the submodule trantor 2019-05-23 16:07:08 +08:00
antao
c17591ef49 Make some inline functions out-line 2019-05-23 10:47:15 +08:00
antao
a4c0e33782 Make the HttpClient class support cookies 2019-05-21 22:10:05 +08:00
antao
11b6d20a69 clang-format 2019-05-18 20:39:57 +08:00
antao
3e1886a84e Add the forward() method to the framework 2019-05-09 16:27:39 +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
2efa183b93 Implement gzip_static 2019-05-03 14:44:20 +08:00
antao
fa9376b89a Change escapes from '{{}}' to '[[]]' in views 2019-04-25 14:36:42 +08:00
antao
189c537c29 Support host strings with IPv6 address in the HttpClient class 2019-04-24 16:48:03 +08:00
antao
32c14631fa Add the getHandlersInfo() method 2019-04-24 14:38:07 +08:00
antao
1bc07c5197 Add support for AOP 2019-04-18 18:37:31 +08:00
antao
e517f07685 Add some methods using std::chrono_literals 2019-04-14 14:02:37 +08:00
antao
d5e8bd0b73 Add the OPTIONS method for CORS 2019-04-12 21:45:43 +08:00
antao
e87c9a75f6 Modify the implementation of WebSocket 2019-04-08 16:37:24 +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
40dc13f0bd Add ws_test.html for websocket testing 2019-04-05 09:54:26 +08:00
antao
62fad73bc9 Enhance HttpClient to support pipelining 2019-04-05 01:50:29 +08:00
an-tao
e128a27c58 Modifying URL encoding of HTTP requests 2019-04-03 00:17:30 +08:00
antao
d216a663aa Modify the HttpController template to be able to specify absolute paths in HttpController 2019-03-31 19:32:16 +08:00
antao
737c9bba8b Provides a way for users to create and initialize controllers and filters with non-default constructors. 2019-03-30 23:09:22 +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
1f8be1ce8c Add some Travis CI tests 2019-03-26 15:25:22 +08:00
an-tao
798861a1cc Use IPV4 in the webapp example 2019-03-25 23:28:22 +08:00
antao
66456eae1a 1. Add the getCustomCOnfig() method.
2. Add some comments.
2019-03-25 17:44:22 +08:00
antao
56eaca1998 Update README.md and the banner image 2019-03-24 23:17:12 +08:00
antao
db72840fc2 Move utility functions to the utils namespace 2019-03-21 17:47:45 +08:00
antao
fecec81975 1.Remove an unnecessary null pointer check
2.Fix a compilation error for older g++
    3.Update README.md
2019-03-20 11:46:27 +08:00
antao
7ae533671c Add matchedPathPattern() interface in the HttpRequest class
Change version to 0.9.31
2019-03-18 10:44:38 +08:00
antao
053c760d27 Rename the InnerIpFilter class 2019-03-14 11:25:12 +08:00
an-tao
0e447a1f9e Adapt ipv6 2019-03-13 23:44:53 +08:00
antao
250781ac08 Add configuration options that limit the number of keep-alive requests 2019-03-12 18:22:13 +08:00
antao
b39dd52a87 Modify some comments 2019-03-06 15:57:05 +08:00
antao
49c03ee707 Add htmlTranslate() method 2019-02-27 10:36:03 +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
82100926e5 Change version to 0.9.24 2019-02-01 18:59:13 +08:00
antao
022132c33e Add json format response benchmark 2019-01-31 10:23:12 +08:00
an-tao
cbbee440ea Compatible with older versions of gcc 2019-01-29 22:24:32 +08:00
antao
55ba4c5196 Support file upload requests 2019-01-29 17:38:55 +08:00
antao
075e3cc6b3 Modify the newFileResponse method 2019-01-29 10:49:37 +08:00
antao
cdd8ba380e 1. Modify the HttpClientImpl class to fix some bugs;
2. Support attachment download;
2019-01-28 18:25:04 +08:00
antao
cef7dc177e Optimize file upload 2019-01-27 15:59:56 +08:00
antao
a5684c66d3 Fix reference count error in HttpClientImpl class 2019-01-25 19:48:24 +08:00
antao
3f4baf15f1 Optimize filters and controllers 2019-01-25 16:46:20 +08:00
antao
615924c889 Debug form post request 2019-01-23 11:32:55 +08:00
antao
7c8432add0 Support http request in json format 2019-01-22 23:00:14 +08:00
antao
a9e9ced331 Use references instead of values in range-based for loop 2019-01-21 17:39:31 +08:00
antao
856aedbf47 Support gzip on the client side 2019-01-21 13:37:53 +08:00
antao
ec7e8a1040 Forbid to download files from the parent folder 2019-01-19 22:57:07 +08:00
antao
8f7adc4ae7 Modify the webapp_test 2019-01-19 14:13:31 +08:00
antao
5fd8571292 Change the listening port 2019-01-19 13:44:24 +08:00
antao
38e8148b56 Add a test client for the simple example 2019-01-19 12:26:03 +08:00
antao
c4987f690b Optimize routing algorithm 2019-01-18 17:42:46 +08:00
antao
ab6faf3376 Add some comments 2019-01-18 10:30:39 +08:00
antao
38966e09d4 Split the HttpAppFrameworkImpl class 2019-01-17 13:51:25 +08:00
an-tao
5c96c4e6a2 Modifying the routing algorithm of HTTP controllers 2019-01-17 00:12:58 +08:00
antao
01de7f4f1e Remove expired filter classes 2019-01-16 10:03:11 +08:00
antao
f35ff6347a Format some files 2019-01-02 18:49:37 +08:00
antao
5c9799c15a Modify http client for cookies 2019-01-02 16:13:36 +08:00
antao
327a7a2f75 Add benchmark code to the examples path 2018-12-15 20:05:19 +08:00
antao
3d24285339 Modify the ListParaView.csp 2018-12-07 19:40:47 +08:00
antao
ba8138ba60 Modify the HttpFile class 2018-11-30 17:34:02 +08:00
antao
cd1139cf83 Update save methods of uploaded files 2018-11-26 16:36:57 +08:00
antao
fbe757444f Modify the newHttpClient() method 2018-11-17 17:33:05 +08:00
antao
13d13ed240 Organize the format of files 2018-11-16 13:26:14 +08:00
an-tao
eef922ffc5 Update trantor 2018-11-16 00:09:58 +08:00
an-tao
e14bc9b41f Split HttpContext class 2018-11-15 22:00:23 +08:00
antao
fd58a419a9 Rename HttpApiController to HttpController 2018-11-15 14:31:10 +08:00
antao
882a8f8090 Change the registerHttpApiMethod method to a non-static method 2018-11-09 15:21:53 +08:00
antao
af53337a6a Add configuration options to the configuration file for simple controller mapping 2018-10-21 14:52:41 +08:00
antao
1433fc0509 Fix a trivial problem 2018-10-20 16:39:38 +08:00
antao
fcb2ab7880 HttpMethod 2018-10-20 13:45:17 +08:00
antao
eef0ee8729 Use 'any' to support two types of constraints 2018-10-20 12:40:30 +08:00
antao
acc26c0776 Add Http method constraints 2018-10-20 11:20:06 +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
40a116193c Modify path matching 2018-10-17 15:06:24 +08:00
antao
c86ec77d26 Add support for view nesting 2018-10-17 13:48:28 +08:00
antao
c9b3dcd9c2 Format all files 2018-10-14 15:56:54 +08:00
antao
cd6fab7a39 Modify examples 2018-10-14 11:56:18 +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
0a3d27a5b0 Optimize response caching 2018-10-13 21:49:37 +08:00
antao
d5202f11fa Add test method in simple_example 2018-10-11 17:57:24 +08:00
antao
16f7af90d3 Add response cache 2018-10-11 11:20:40 +08:00
antao
900cc62306 Add 'log_level' config option 2018-10-06 10:15:46 +08:00
antao
0c6f39c34d Modify create view command of drogon_ctl 2018-10-05 19:17:12 +08:00
antao
3a26cb0f1b Update get_version.sh 2018-10-02 20:02:43 +08:00
antao
d04efa98b2 1.Simplify the FunctionTraits;
2.Fix simple_example's bugs
2018-09-29 17:33:19 +08:00
antao
5238da4df7 Use sendfile() system-call 2018-09-25 18:07:29 +08:00
antao
735d423fa5 Fix bugs of non-virtual destructor 2018-09-18 16:46:02 +08:00
antao
c71f0810b2 Add configuration file for drogon 2018-09-13 18:25:30 +08:00
antao
1d11c0cab4 Update CMakeLists.txt 2018-09-12 10:17:16 +08:00
antao
14ea657a2a Modify example program 2018-09-11 18:40:00 +08:00
antao
2391cc1484 Fix HTTP response parsing bug 2018-09-10 15:50:44 +08:00
antao
31150ab32d Add file uploading example 2018-09-07 09:53:37 +08:00
antao
6fbfe28506 Update status code 2018-09-06 19:06:25 +08:00
antao
b0546e1277 Change some code 2018-09-04 11:19:12 +08:00
antao
790867d1e3 Add gzip compressing 2018-09-03 10:56:11 +08:00
antao
44bdc8ecbc Change a method name 2018-09-02 16:21:12 +08:00
antao
1011d5211d Add LocalHostFilter 2018-08-31 15:17:09 +08:00
antao
2cff4a3457 Update METHOD_ADD macro 2018-08-30 10:18:04 +08:00
antao
966dd2e30e Update FunctionTraits of HttpApiBinder 2018-08-29 18:26:36 +08:00
antao
a314404e89 Format code 2018-08-27 18:19: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
5bc2929797 Add http file types for download 2018-08-24 11:21:02 +08:00
antao
1faa4937a3 Fix some bugs 2018-08-23 18:05:17 +08:00
antao
6aa14b27b8 Modify websocket example 2018-08-23 13:17:54 +08:00
antao
8a82d988ec Fix websocket bugs 2018-08-23 11:23:38 +08:00
antao
414e9b5fa6 Debug websocket frame parsing....something is wrong 2018-08-22 19:20:34 +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
a6fe81a003 Fix framework bugs 2018-08-14 16:35:05 +08:00
antao
1c47395bb8 Fix api controller instance bug 2018-08-10 22:53:09 +08:00
antao
bb438ba272 add HttpRequest method 2018-08-09 14:12:31 +08:00
antao
99ba19ebca change doFilter interface 2018-08-02 15:38:06 +08:00
antao
d1f4ccf3d7 Modify some methods 2018-07-25 21:00:37 +08:00
antao
4f189afdf5 Modify HttpRequest creating interface 2018-07-25 17:07:21 +08:00
antao
278f7abae1 Fix bug in HttpClient 2018-07-24 18:50:25 +08:00
antao
8f2fefb8e8 Merge branch 'master' of https://github.com/an-tao/drogon 2018-07-24 17:24:38 +08:00
antao
0e68138fa6 Debug HttpClient... 2018-07-24 17:24:23 +08:00
an-tao
199dc1918f Add SSL macro in test program 2018-07-21 21:08:35 +08:00
antao
00e82ce5ba Support https with OpenSSL 2018-07-21 13:21:13 +08:00
an-tao
0af5482a9a rename a example dir 2018-06-28 23:29:40 +08:00
root
82855fc86e fix precompiled bugs 2018-06-23 11:22:20 +00: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
50bbd2d946 modify definitation of any 2018-06-13 17:30:40 +08:00
an-tao
4a8cb46f43 add some method in HttpAppFramework 2018-06-11 17:11:06 +08:00
an-tao
6c7512bdf4 file uploading 2018-06-11 15:45:28 +08:00
an-tao
e0fbab7d0e add setThreadNum method 2018-06-08 17:21:36 +08:00
an-tao
e2fdbe9f62 fix a spelling mistake 2018-06-08 12:22:11 +08:00
an-tao
fb6c6527bd add query parameters map to handler method 2018-06-08 11:15:29 +08:00
an-tao
132e887337 fix a spelling error 2018-06-07 16:38:45 +08:00
an-tao
5728774b26 urldecode in path string 2018-06-07 10:29:41 +08:00
an-tao
43744f5df6 modify example of api controller 2018-06-07 09:41:15 +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
f992c02673 use std::regex to match api path pattern,and parse arguments in path 2018-06-06 16:34:02 +08:00
an-tao
03885cc9cb modify macro in api controller 2018-06-05 21:42:08 +08:00
an-tao
232094f01a create controller only once 2018-06-05 17:59:11 +08:00
an-tao
488e824d44 HttpApiController work 2018-06-05 14:40:03 +08:00
an-tao
4a063155a1 change FunctionTraits 2018-06-05 10:43:53 +08:00
an-tao
6004b633af change http callback interface 2018-06-05 09:38:03 +08:00
an-tao
ed4ed3fda0 make HttpApiBinder support lambda and std::function 2018-06-04 23:45:21 +08:00
an-tao
a8bc891209 Continue to improve the api controller, not yet completed 2018-06-04 19:00:35 +08:00