public void RemoveHead(string key) { if (ContentHeads.ContainsKey(key)) { ContentHeads.Remove(key); } }
public void AddHead(string key, string value) { if (!ContentHeads.ContainsKey(key)) { ContentHeads.Add(key, value); } else { ContentHeads[key] = value; } }