class documentation

class _EnsureCsrfToken(CsrfViewMiddleware):

View In Hierarchy

Undocumented

Method ​_reject Undocumented

Inherited from CsrfViewMiddleware:

Method ​_accept Undocumented
Method ​_bad​_token​_message Undocumented
Method ​_check​_referer Undocumented
Method ​_check​_token Undocumented
Method ​_get​_token Undocumented
Method ​_origin​_verified Undocumented
Method ​_set​_csrf​_cookie Undocumented
Method process​_request Undocumented
Method process​_response Undocumented
Method process​_view Undocumented
Property allowed​_origin​_subdomains A mapping of allowed schemes to list of allowed netlocs, where all subdomains of the netloc are allowed.
Property allowed​_origins​_exact Undocumented
Property csrf​_trusted​_origins​_hosts Undocumented

Inherited from MiddlewareMixin (via CsrfViewMiddleware):

Async Method __acall__ Async version of __call__ that is swapped in when an async request is running.
Method __call__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method ​_async​_check If get_response is a coroutine function, turns us into async mode so a thread is not consumed during a whole request.
Class Variable async​_capable Undocumented
Class Variable sync​_capable Undocumented
Instance Variable ​_is​_coroutine Undocumented
Instance Variable get​_response Undocumented
def _reject(self, request, reason):