code: def _server_begin_response_callback(self, response: Response):
          '''Pre-response callback handler.'''
          self._item_session.response = response
  
          if self._cookie_jar:
              self._cookie_jar.extract_cookies(response, self._item_session.request)
  
          action = self._result_rule.handle_pre_response(self._item_session)
          self._file_writer_session.process_response(response)
  
          return action == Actions.NORMAf _server_begin_response_callback(self, response: Response):
          '''Pre-response callback handler.'''
          self._item_session.response = response
  
          if self._cookie_jar:
              self._cookie_jar.extract_cookies(response, self._item_session.request)
  
          action = self._result_rule.handle_pre_response(self._item_session)
          self._file_writer_session.process_response(response)
  
          return action == Actions.NORMAL
docs: Pre-response callback handler.