EvandroLG / pegasus.lua

:rocket: Pegasus.lua is an http server to work with web applications written in Lua language.
http://evandrolg.github.io/pegasus.lua/
MIT License
421 stars 36 forks source link

plugin handlers are broken #129

Open Tieske opened 1 year ago

Tieske commented 1 year ago

the handler file has a lot of plugin handlers, but a number of them are never invoked. Also some are quite obscure (eg the metatable one).

However there seems no way to fix this without some serious breaking changes. Hence I think it makes sense to redesign the handlers all together.

Here's a stab at an updated set of handlers;

The list doesn't have file send handlers, since imho the file send logic itself should actually be a plugin.