code: def set_notify_dispatch_request(self, notify_dispatch_request, *args):
          
          self._notify_dispatch_request = notify_dispatch_request
          self._notify_args = args
docs: Set function to call just before requests are dispatched
  
          Args:
              notify_dispatch_request (callable): function will be called
                  with request as single arg just before request is dispatched