Commit Graph

8 Commits

Author SHA1 Message Date
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