HttpRequestHeaders Class
.NET Framework 4.5
Represents the collection of Request Headers as defined in RFC 2616.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http (in System.Net.Http.dll)
The HttpRequestHeaders type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Accept | Gets the value of the Accept header for an HTTP request. |
![]() ![]() | AcceptCharset | Gets the value of the Accept-Charset header for an HTTP request. |
![]() ![]() | AcceptEncoding | Gets the value of the Accept-Encoding header for an HTTP request. |
![]() ![]() | AcceptLanguage | Gets the value of the Accept-Language header for an HTTP request. |
![]() ![]() | Authorization | Gets or sets the value of the Authorization header for an HTTP request. |
![]() ![]() | CacheControl | Gets or sets the value of the Cache-Control header for an HTTP request. |
![]() ![]() | Connection | Gets the value of the Connection header for an HTTP request. |
![]() ![]() | ConnectionClose | Gets or sets a value that indicates if the Connection header for an HTTP request contains Close. |
![]() ![]() | Date | Gets or sets the value of the Date header for an HTTP request. |
![]() ![]() | Expect | Gets the value of the Expect header for an HTTP request. |
![]() ![]() | ExpectContinue | Gets or sets a value that indicates if the Expect header for an HTTP request contains Continue. |
![]() ![]() | From | Gets or sets the value of the From header for an HTTP request. |
![]() ![]() | Host | Gets or sets the value of the Host header for an HTTP request. |
![]() ![]() | IfMatch | Gets the value of the If-Match header for an HTTP request. |
![]() ![]() | IfModifiedSince | Gets or sets the value of the If-Modified-Since header for an HTTP request. |
![]() ![]() | IfNoneMatch | Gets the value of the If-None-Match header for an HTTP request. |
![]() ![]() | IfRange | Gets or sets the value of the If-Range header for an HTTP request. |
![]() ![]() | IfUnmodifiedSince | Gets or sets the value of the If-Unmodified-Since header for an HTTP request. |
![]() ![]() | MaxForwards | Gets or sets the value of the Max-Forwards header for an HTTP request. |
![]() ![]() | Pragma | Gets the value of the Pragma header for an HTTP request. |
![]() ![]() | ProxyAuthorization | Gets or sets the value of the Proxy-Authorization header for an HTTP request. |
![]() ![]() | Range | Gets or sets the value of the Range header for an HTTP request. |
![]() ![]() | Referrer | Gets or sets the value of the Referer header for an HTTP request. |
![]() ![]() | TE | Gets the value of the TE header for an HTTP request. |
![]() ![]() | Trailer | Gets the value of the Trailer header for an HTTP request. |
![]() ![]() | TransferEncoding | Gets the value of the Transfer-Encoding header for an HTTP request. |
![]() ![]() | TransferEncodingChunked | Gets or sets a value that indicates if the Transfer-Encoding header for an HTTP request contains chunked. |
![]() ![]() | Upgrade | Gets the value of the Upgrade header for an HTTP request. |
![]() ![]() | UserAgent | Gets the value of the User-Agent header for an HTTP request. |
![]() ![]() | Via | Gets the value of the Via header for an HTTP request. |
![]() ![]() | Warning | Gets the value of the Warning header for an HTTP request. |
| Name | Description | |
|---|---|---|
![]() ![]() | Add(String, IEnumerable<String>) | Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Add(String, String) | Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Clear | Removes all headers from the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Contains | Returns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() ![]() | GetEnumerator | Returns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | GetValues | Returns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Remove | Removes the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | ToString | Returns a string that represents the current HttpHeaders object. (Inherited from HttpHeaders.) |
![]() ![]() | TryAddWithoutValidation(String, IEnumerable<String>) | Returns a value that indicates whether the specified header and its values were added to the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.) |
![]() ![]() | TryAddWithoutValidation(String, String) | Returns a value that indicates whether the specified header and its value were added to the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.) |
![]() ![]() | TryGetValues | Return if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.) |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | IEnumerable.GetEnumerator | Gets an enumerator that can iterate through a HttpHeaders. (Inherited from HttpHeaders.) |
This type is derived from HttpHeaders.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




