Пример #1
0
 def logout(request):
     response = web.HTTPFound(location='/')
     yield from forget(request, response)
     return response
Пример #2
0
 def do_forget(request):
     response = web.Response()
     yield from forget(request, response)
Пример #3
0
 def do_forget(request):
     response = web.Response()
     yield from forget(request, response)
 def logout(request):
     response = web.HTTPFound('/')
     yield from forget(request, response)
     return response
Пример #5
0
 def logout(self, request):
     response = web.Response(body=b'You have been logged out')
     yield from forget(request, response)
     return response
Пример #6
0
 def post(self):
     response = self.response('')
     yield from forget(self.request, response)
     return response