klein
klein copied to clipboard
support for middleware?
Hi i need to have a middleware that performs some authentication for anyendpoint call. something like explained here https://afropolymath.svbtle.com/intercept-route-requests-using-decorators-in-flask .how can i achieve same in twisted klein?
Here's a comment that should give you some insight into how "middleware" solutions can be created. Seems like this should be referenced in a feature request for authentication middleware (of some sort).
@notoriousno it a nice coincidence i came up with an exact solution using decorators :)
So far nothing has happened???