You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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)
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 usingfunctools.partial
wrapped around the handler inside the__mapping__
call override, but it'd be great to have a standard way of doing itThe text was updated successfully, but these errors were encountered: