Commit Graph

11 Commits

Author SHA1 Message Date
614a496b7d Application is not a singleton anymore, as I think having multiple ones can be useful. HttpServer has an application pointer now (temporarily), it will be subclassed later. 2021-04-28 22:50:05 +02:00
67e740e35b Fix file chunking with downloads. Also fixed a bunch of std::shared_ptr misuses, and made Application::send_file use Request's file chunking. Also the framework will properly handle client disconnects now. 2021-02-09 01:25:24 +01:00
42758e57ad Revert everything back to bf688577fb . 2021-02-08 11:01:15 +01:00
7d000bb5b5 Work on fixing compile. 2021-02-03 19:43:54 +01:00
647694b576 Started migrating to trantor. Took lots of core utility classes from drogon aswell. At the moment the project doesn't compiles! 2021-02-03 02:18:37 +01:00
a6b29c04a4 Started working on settings. 2020-12-08 16:22:18 +01:00
b063237399 Initial TableBuilder implementation, and simple migrations. 2020-12-01 23:37:10 +01:00
65f7f3a6b2 Now handlers need to have a new Object* parameter, this can be used to optionally carry class instances. (think of it as self in python object methods, except it can be null). 2020-12-01 12:56:04 +01:00
c3922e17d2 Moved routing to a middleware, so it's easily customizable, and also it is now able to do async things. 2020-11-26 12:10:21 +01:00
cc8de9ed7f The default 404 and generic errors html bodies are static members in Application, this makes them trivial to replace if they are static html. 2020-11-26 11:32:33 +01:00
c53c3dbfc3 Renamed the framework folder to core. 2020-11-25 13:28:34 +01:00