code: def process_request(self, req, resp):  # pylint: disable=unused-argument
          
  
          try:
              creds = self._get_creds(req)
              self.auth_creds(*creds)
          except (AuthRejected, AuthRequired, InvalidAuthSyntax) as exc:
              exc.headers = self._error_headers
              if not self.optional:
                  abort(exc)
docs: Process the request before routing it.