Commit Graph

213 Commits

Author SHA1 Message Date
An Tao 71b60823da
Modify dynamic view loading algorithm (#339) 2020-02-16 17:19:16 +08:00
An Tao 58702dc41e
Port drogon to Windows (#335)
Co-authored-by: mcirsta <mforce2@gmail.com>
2020-01-25 11:58:20 +08:00
antao fb2343ac74 Add location configuration for static resources (#331) 2020-01-12 11:05:38 +08:00
An Tao 62fc82cba1
Add support for regular expressions when routing (#329) 2020-01-09 17:03:30 +08:00
An Tao feb0b73e78
Modify the benchmark example (#321) 2019-12-23 14:08:56 +08:00
An Tao 4809cc9508
Modify the reverse proxy example (#319) 2019-12-16 00:34:40 +08:00
An Tao ea43d8127d
Add a reverse proxy example (#309) 2019-12-08 08:31:56 +08:00
An Tao 93c0d7e9da
Reset the flag used to parse json to false before recycling HttpRequest objects (#304) 2019-11-28 23:33:50 +08:00
An Tao 40ffb2d2af
Modify some code styles (#298) 2019-11-21 11:27:47 +08:00
An Tao e7b6ba27bb
Make user can use a custom type parameter instead of the first parameter in handlers of HttpControllers (#284) 2019-10-19 14:27:34 +08:00
An Tao 3a3a5636e8
Add type conversion methods to the HttpRequest and HttpResponse classes (#283) 2019-10-18 22:26:20 +08:00
An Tao 228bac1cfb
Make user can use any string as a placeholder's name in routing patterns (#282) 2019-10-17 17:12:52 +08:00
An Tao d830c4f057
Fix some race conditions (#280)
* Fix a race condition of static files

* Fix a race condition of 404 pages
2019-10-17 09:23:14 +08:00
Daniel Mensinger 656bd2462b Do not use smart pointers in thread storage (#269) 2019-10-03 19:22:37 +08:00
An Tao 323bf0693a
Use the IOThreadStorage for responses caching and fast database clients storage (#267) 2019-10-03 10:17:54 +08:00
Armstrong 1414704b44 add per request attribute store (#259) 2019-09-28 21:48:06 +08:00
Daniel Mensinger 795079531a cmake: use export namespace for Drogon::Drogon (#255)
* cmake: use ${PROJECT_NAME} instead of drogon everywere

* cmake: use export namespace instead of dummy library
2019-09-26 19:33:58 +08:00
Armstrong ae01eb5ded fix url decode (#256)
* urldecode: should always unescaped chars
2019-09-26 10:06:09 +08:00
An Tao 9855fc9b4f
Fix bugs in HTTP view examples (#246) 2019-09-16 10:10:23 +08:00
An Tao aa26e9a903
Modify the CMakeLists to modern cmake style (#229) 2019-08-31 08:27:57 +08:00
An Tao 7186a74590
Add a WebSocket test (#227) 2019-08-26 17:53:02 +08:00
An Tao 9f330f310d
Add a synchronous join point for AOP (#226) 2019-08-26 09:00:20 +08:00
An Tao c3cb70f415
Optimize performance (#222) 2019-08-24 13:12:04 +08:00
An Tao a0f5570f8b
Modify HttpClient and WebSocketClient (#210) 2019-08-13 17:32:52 +08:00
An Tao c705990fe5
Add the DrogonConfig.cmake (#207)
Add DrogonConfig.cmake so that users can use drogon with the `find_package(Drogon)` command.
2019-08-08 15:17:09 +08:00
An Tao ba7d788184
Add options for 'Server' header and 'Date' header (#202) 2019-07-31 19:44:32 +08:00
antao 40087fba9c Remove config.h
Modify the CMakeLists.txt

Remove the USE_ORM macro

Update trantor

Remove some std::dynamic_pointer_cast calls
2019-07-29 14:53:41 +08:00
An Tao 986ef8dda7
Optimize pipelining (#197)
* Optimize pipelining

* Optimize the DbClientLockFree class
2019-07-25 16:30:42 +08:00
An Tao 33577b9666
Format some files for good code style (#196) 2019-07-16 20:00:20 +08:00
An Tao 9af87bb1c0
Add some managers to reduce the size of the HttpAppFrameworkImpl code (#194) 2019-07-12 16:47:21 +08:00
An Tao 6e8c718a52
Modify some comments in simple_example (#193) 2019-07-11 19:39:23 +08:00
antao b155aa1b1a Add a README file for examples 2019-07-10 17:57:47 +08:00
antao 47c6bc20f4 Optimize the htmlTranslate method 2019-07-08 13:49:01 +08:00
antao 9f779f2636 Update CacheFile class to adapt linux 2019-06-06 16:51:12 +08:00
antao 335f852aab Add some necessary headers in preflight responses for CORS 2019-06-01 07:11:47 +08:00
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