code: def preprocessRequest(self, service_request, *args, **kwargs):
          
          processor = self.getPreprocessor(service_request)
  
          if self.logger:
              self.logger.debug('Preprocessor expands to: %r' % processor)
  
          if processor is None:
              return
  
          args = (service_request,) + args
  
          if hasattr(processor, '_pyamf_expose_request'):
              http_request = kwargs.get('http_request', None)
              args = (http_request,) + args
  
          return defer.maybeDeferred(processor, *args)
docs: Preprocesses a request.