parameters: (
        self,
        header_name,
        method_id,
        fallback_value,
        fallback_value_replace,
      )
docstring: Create or modify a header rule.
  
        See getResponseHeaderRuleDict for a parameter description.
        header_name is lower-cased before validation and storage.
docstring_summary: Create or modify a header rule.
docstring_tokens: Create or modify a header rule .
function: def setResponseHeaderRule(
        self,
        header_name,
        method_id,
        fallback_value,
        fallback_value_replace,
      ):
        """
        Create or modify a header rule.
  
        See getResponseHeaderRuleDict for a parameter description.
        header_name is lower-cased before validation and storage.
        """
        header_name = header_name.lower()
        if not header_name:
          raise ValueError('Header name must not be empty')
        for char in header_name:
          if IS_FORBIDDEN_HEADER_NAME_CHAR_LIST[ord(char)]:
            raise ValueError(
              '%r is not a valid header name character' % (char, ),
            )
        for char in fallback_value:
          if IS_FORBIDDEN_HEADER_VALUE_CHAR_LIST[ord(char)]:
            raise ValueError(
              '%r is not a valid header value character' % (char, ),
            )
        self._getResponseHeaderRuleDictForModification()[header_name] = (
          method_id,
          fallback_value,
          bool(fallback_value_replace),
        )
function_tokens: def setResponseHeaderRule ( self , header_name , method_id , fallback_value , fallback_value_replace , ) : header_name = header_name . lower ( ) if not header_name : raise ValueError ( 'Header name must not be empty' ) for char in header_name : if IS_FORBIDDEN_HEADER_NAME_CHAR_LIST [ ord ( char ) ] : raise ValueError ( '%r is not a valid header name character' % ( char , ) , ) for char in fallback_value : if IS_FORBIDDEN_HEADER_VALUE_CHAR_LIST [ ord ( char ) ] : raise ValueError ( '%r is not a valid header value character' % ( char , ) , ) self . _getResponseHeaderRuleDictForModification ( ) [ header_name ] = ( method_id , fallback_value , bool ( fallback_value_replace ) , )