public bool ContainsHeader(IHeader header) { if (!headers.ContainsKey(header.GetType())) { return false; } return headers[header.GetType()].Equals(header); }
public IResponseContext AddHeader(IHeader header) { if (headers.ContainsKey(header.GetType())) { headers[header.GetType()] = header; } else { headers.Add(header.GetType(), header); } return this; }