Stumps.Rules.HeaderRule.InitializeRule C# (CSharp) Method

InitializeRule() private method

Initializes the rule.
private InitializeRule ( string name, string value ) : void
name string The name of the HTTP header.
value string The value of the HTTP header.
return void
        private void InitializeRule(string name, string value)
        {
            _headerNameValue = name ?? string.Empty;
            _headerValueValue = value ?? string.Empty;

            _nameTextMatch = new TextMatch(_headerNameValue, true);
            _valueTextMatch = new TextMatch(_headerValueValue, true);

            this.IsInitialized = true;
        }