Commit Graph

12 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
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
4b64bf5864 Implemented chunked file downloads. For some reason if a file is too big and has to be sent in more that 43 chunks it crashes, it might be a bug in brynet (it always crashes at the 43th chunk, with every file and chunk size setting.), will figure out the problem later. 2021-01-08 02:55:41 +01:00
2e48e3c4ec Added a url stack to Request, for easier route handling. Also made the main routing middleware use it. 2020-12-28 19:15:27 +01:00
8f5c1fa4cc Add footer string into request. 2020-12-26 00:17:36 +01:00
195f8db964 Added a head and body string to Request, and removed themes. I think themes added unnecessary complexity, and code non-locality (The view methods would have been in a different class.). I think in a language which have headers this is unwanted (The code will be broken up with the mvc pattern, but the methods don't need to be in separate classes.). Themes are still easily implementable by either adding different css links to the new head variable, or by inheritance. 2020-12-11 16:54:41 +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
40471f0525 Now the request handling/middlewares work in a fully async way. 2020-11-26 12:02:58 +01:00
566717c075 Now requests have to be sent manually, with a new send() method. This makes it possible to handle requests in a full on async callback-like way. 2020-11-26 11:26:02 +01:00
c53c3dbfc3 Renamed the framework folder to core. 2020-11-25 13:28:34 +01:00