class documentation

class BrokenLinkEmailsMiddleware(MiddlewareMixin): (source)

View In Hierarchy

Undocumented

Method is_ignorable_request Return True if the given request *shouldn't* notify the site managers according to project settings or in situations outlined by the inline comments.
Method is_internal_request Return True if the referring URL is the same domain as the current request.
Method process_response Send broken link emails for relevant 404 NOT FOUND responses.

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
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 is_ignorable_request(self, request, uri, domain, referer): (source)

Return True if the given request *shouldn't* notify the site managers according to project settings or in situations outlined by the inline comments.

def is_internal_request(self, domain, referer): (source)

Return True if the referring URL is the same domain as the current request.

def process_response(self, request, response): (source)

Send broken link emails for relevant 404 NOT FOUND responses.