code: def dispatch(self, request, **resources):
          
  
          # Fix PUT and PATH methods in Django request
          request = fix_request(request)
  
          # Set self identifier
          self.identifier = request.META.get('REMOTE_ADDR', 'anonymous')
  
          # Send ADREST started signal
          api_request_started.send(self, request=request)
  
          # Send current api started signal
          if self.api:
              self.api.request_started.send(self, request=request)
  
          try:
  
              # Check request method
              self.check_method_allowed(request)
  
              # Authentificate
              self.authenticate(request)
  
              # Throttle check
              self.throttle_check()
  
              if request.method != 'OPTIONS' or not ADREST_ALLOW_OPTIONS:
  
                  # Parse content
                  request.data = self.parse(request)
  
                  # Get required resources
                  resources = self.get_resources(
                      request, **resources)
  
                  # Check owners
                  self.check_owners(request, **resources)
  
                  # Check rights for resources with this method
                  self.check_rights(resources, request=request)
  
              response = self.handle_request(request, **resources)
  
              # Serialize response
              response = self.emit(response, request=request)
  
          except Exception as e:
              response = self.handle_exception(e, request=request)
  
          response["Allow"] = ', '.join(self._meta.allowed_methods)
          response["Vary"] = 'Authenticate, Accept'
  
          # Send errors on mail
          adrest_errors_mail(response, request)
  
          # Send finished signal
          api_request_finished.send(
              self, request=request, response=response, **resources)
  
          # Send finished signal in API context
          if self.api:
              self.api.request_finished.send(
                  self, request=request, response=response, **resources)
  
          return response
docs: Try to dispatch the request.
  
          :return object: result