Contains protocol headers associated with a request or response.
Object
NameObjectCollectionBase
NameValueCollection
WebHeaders
[Visual Basic] Public Class WebHeaders Inherits NameValueCollection [C#] public class WebHeaders : NameValueCollection [C++] public __gc class WebHeaders : public NameValueCollection [JScript] public class WebHeaders extends NameValueCollection
The WebHeaders class is based on the NameValueCollection class.
The WebHeaders class is generally accessed through TBD or TBD. Some common headers are considered "privileged" and are either exposed directly by the API (such as Content-Type) or protected by the system and cannot be changed.
The privileged headers are:
Transfer-Encoding | |
Content-Type | Exposed through the API. |
Content-Length | Exposed through the API. |
Connection | |
Expect | |
Accept | |
Referrer | |
User-Agent | |
Host | |
Date |
Namespace: System.Net
Assembly: System.net.dll