How can I write view decorator for class and non-class methods?

后端 未结 0 614
萌比男神i
萌比男神i 2021-02-08 19:30

I\'ve built the following decorator to extract a token from HTTP headers, and call the decorated function. Or, if no token exists, or is invalid, returns a 403 status.

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题