// Exceptions: // System.InvalidOperationException: // This System.Net.WebHeaderCollection instance does not allow instances of // System.Net.HttpRequestHeader. /// <summary> /// Removes the specified header from the collection. /// </summary> /// <param name="header">The System.Net.HttpRequestHeader instance to remove from the collection.</param> public void Remove(HttpRequestHeader header) { Remove(CSharpHeaderToHtmlHeaderConverter.Convert(header)); }
// Exceptions: // System.ArgumentOutOfRangeException: // The length of value is greater than 65535. // // System.InvalidOperationException: // This System.Net.WebHeaderCollection instance does not allow instances of // System.Net.HttpResponseHeader. /// <summary> /// Inserts the specified header with the specified value into the collection. /// </summary> /// <param name="header">The header to add to the collection.</param> /// <param name="value">The content of the header.</param> public void Add(HttpResponseHeader header, string value) { Add(CSharpHeaderToHtmlHeaderConverter.Convert(header), value); }