def process_request(self, req, resp):
"""
Falcon hook to inject authentication before the requests is
processed.
:param req: Request instance that will be passed through.
:type req: falcon.Request
:param resp: Response instance that will be passed through.
:type resp: falcon.Response
:raises: falcon.HTTPForbidden
"""
self.authenticate(req, resp)
评论列表
文章目录