/// <summary>
 /// Removes the given header.
 /// </summary>
 /// <param name="hHeader">The header to remove.</param>
 public void Remove(HTTPHeader hHeader)
 {
     for (int iC1 = lHeaders.Count - 1; iC1 >= 0; iC1--)
     {
         if (lHeaders[iC1].Equals(hHeader))
         {
             lHeaders.RemoveAt(iC1);
         }
     }
 }
        /// <summary>
        /// Compares this object to another object.
        /// </summary>
        /// <param name="obj">The object to compare to this object.</param>
        /// <returns>A bool indicating whether the two objects are the same.</returns>
        public override bool Equals(object obj)
        {
            if (obj is HTTPHeader)
            {
                HTTPHeader h = (HTTPHeader)obj;

                return(Name.Equals(h.Name, StringComparison.OrdinalIgnoreCase) && Value == h.Value);
            }

            return(false);
        }
 /// <summary>
 /// Adds the given header to this collection.
 /// </summary>
 /// <param name="hHeader">The header to add.</param>
 public void Add(HTTPHeader hHeader)
 {
     lHeaders.Add(hHeader);
 }