parameters: (self, request)
return_statement: return response
docstring: Fetch the request and return the response.
  
      Args:
        request: an ArchivedHttpRequest.
      Returns:
        an ArchivedHttpResponse
docstring_summary: Fetch the request and return the response.
docstring_tokens: Fetch the request and return the response .
function: def __call__(self, request):
      """Fetch the request and return the response.
  
      Args:
        request: an ArchivedHttpRequest.
      Returns:
        an ArchivedHttpResponse
      """
      # If request is already in the archive, return the archived response.
      if request in self.http_archive:
        logging.debug('Repeated request found: %s', request)
        response = self.http_archive[request]
      else:
        response = self.real_http_fetch(request)
        if response is None:
          return None
        self.http_archive[request] = response
      if self.inject_script:
        response = _InjectScripts(response, self.inject_script)
      logging.debug('Recorded: %s', request)
      return response
function_tokens: def __call__ ( self , request ) : # If request is already in the archive, return the archived response. if request in self . http_archive : logging . debug ( 'Repeated request found: %s' , request ) response = self . http_archive [ request ] else : response = self . real_http_fetch ( request ) if response is None : return None self . http_archive [ request ] = response if self . inject_script : response = _InjectScripts ( response , self . inject_script ) logging . debug ( 'Recorded: %s' , request ) return response