class documentation

class MessageMiddleware(MiddlewareMixin):

View In Hierarchy

Middleware that handles temporary messages.
Method process​_request Undocumented
Method process​_response Update the storage backend (i.e., save the messages).

Inherited from MiddlewareMixin:

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 process_request(self, request):

Undocumented

def process_response(self, request, response):

Update the storage backend (i.e., save the messages).

Raise ValueError if not all messages could be stored and DEBUG is True.