System.Net.WebHeaderCollection
namespace System.Net
{
public enum HttpResponseHeader
{
AcceptRanges = 20,
Age = 21,
Allow = 10,
CacheControl = 0,
Connection = 1,
ContentEncoding = 13,
ContentLanguage = 14,
ContentLength = 11,
ContentLocation = 15,
ContentMd5 = 16,
ContentRange = 17,
ContentType = 12,
Date = 2,
ETag = 22,
Expires = 18,
KeepAlive = 3,
LastModified = 19,
Location = 23,
Pragma = 4,
ProxyAuthenticate = 24,
RetryAfter = 25,
Server = 26,
SetCookie = 27,
Trailer = 5,
TransferEncoding = 6,
Upgrade = 7,
Vary = 28,
Via = 8,
Warning = 9,
WwwAuthenticate = 29
}
}
namespace System.Net
{
public class WebHeaderCollection : NameValueCollection, ISerializable
{
public string this[HttpRequestHeader header] { get; set; }
public string this[HttpResponseHeader header] { get; set; }
public WebHeaderCollection();
protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext);
public void Add(HttpRequestHeader header, string value);
public void Add(HttpResponseHeader header, string value);
public void Add(string header);
protected void AddWithoutValidate(string headerName, string headerValue);
public static bool IsRestricted(string headerName);
public static bool IsRestricted(string headerName, bool response);
public void Remove(HttpRequestHeader header);
public void Remove(HttpResponseHeader header);
public void Set(HttpRequestHeader header, string value);
public void Set(HttpResponseHeader header, string value);
public byte[] ToByteArray();
}
}