class documentation

class _EnsureCsrfToken(CsrfViewMiddleware): (source)

View In Hierarchy

Undocumented

Method _reject Undocumented

Inherited from CsrfViewMiddleware:

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
Method _accept Undocumented
Method _bad_token_message Undocumented
Method _check_referer Undocumented
Method _check_token Undocumented
Method _get_secret Return the CSRF secret originally associated with the request, or None if it didn't have one.
Method _origin_verified Undocumented
Method _set_csrf_cookie 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
Class Variable async_capable Undocumented
Class Variable sync_capable Undocumented
Instance Variable get_response 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.
Instance Variable _is_coroutine Undocumented
def _reject(self, request, reason): (source)