MCPcopy
hub / github.com/django/django / process_response

Method process_response

tests/csrf_tests/views.py:28–30  ·  view source on GitHub ↗
(self, request, response)

Source from the content-addressed store, hash-verified

26
27class _CsrfCookieRotator(MiddlewareMixin):
28 def process_response(self, request, response):
29 rotate_token(request)
30 return response
31
32
33csrf_rotating_token = decorator_from_middleware(_CsrfCookieRotator)

Callers 1

test_middlewareMethod · 0.45

Calls 1

rotate_tokenFunction · 0.90

Tested by 1

test_middlewareMethod · 0.36