Feature request: before/after request methods
upcFrost opened this issue · 2 comments
upcFrost commented
Hi,
It'd be really cool to support overridable methods called before and after the request (useful for logging and setting the request context), similar to flask before_request
decorator. For myself I've implemented those using functools.partial
wrapped around the handler inside the __mapping__
call override, but it'd be great to have a standard way of doing it
vmagamedov commented
Currently you can override a call or track beginning of a request using RecvRequest event
upcFrost commented
Interesting, thank you, I'll try using it. Though it's a bit painful that events should be mapped to the server and not to the handler class (those are in two different modules)