public void Add(string header) { if (header.IsNullOrEmpty()) { throw new ArgumentNullException("header"); } int num = WebHeaderCollection.CheckColonSeparated(header); this.Add(header.Substring(0, num), header.Substring(num + 1)); }
internal void SetInternal(string header, bool response) { int num = WebHeaderCollection.CheckColonSeparated(header); this.SetInternal(header.Substring(0, num), header.Substring(num + 1), response); }