private void Add(string name, string value, bool ignoreRestricted)
        {
            Action <string, string> act;

            if (ignoreRestricted)
            {
                act = new Action <string, string>(this.AddWithoutCheckingNameAndRestricted);
            }
            else
            {
                act = new Action <string, string>(this.AddWithoutCheckingName);
            }
            this.DoWithCheckingState(act, WebHeaderCollection.CheckName(name), value, true);
        }
 public override void Set(string name, string value)
 {
     this.DoWithCheckingState(new Action <string, string>(this.SetWithoutCheckingName), WebHeaderCollection.CheckName(name), value, true);
 }
 public override void Remove(string name)
 {
     this.DoWithCheckingState(new Action <string, string>(this.RemoveWithoutCheckingName), WebHeaderCollection.CheckName(name), null, false);
 }
 public static bool IsRestricted(string headerName, bool response)
 {
     return(WebHeaderCollection.ContainsInRestricted(WebHeaderCollection.CheckName(headerName), response));
 }