HttpResponseHeaders Class
.NET Framework 4.5
Represents the collection of Response Headers as defined in RFC 2616.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http (in System.Net.Http.dll)
The HttpResponseHeaders type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | AcceptRanges | Gets the value of the Accept-Ranges header for an HTTP response. |
![]() ![]() | Age | Gets or sets the value of the Age header for an HTTP response. |
![]() ![]() | CacheControl | Gets or sets the value of the Cache-Control header for an HTTP response. |
![]() ![]() | Connection | Gets the value of the Connection header for an HTTP response. |
![]() ![]() | ConnectionClose | Gets or sets a value that indicates if the Connection header for an HTTP response contains Close. |
![]() ![]() | Date | Gets or sets the value of the Date header for an HTTP response. |
![]() ![]() | ETag | Gets or sets the value of the ETag header for an HTTP response. |
![]() ![]() | Location | Gets or sets the value of the Location header for an HTTP response. |
![]() ![]() | Pragma | Gets the value of the Pragma header for an HTTP response. |
![]() ![]() | ProxyAuthenticate | Gets the value of the Proxy-Authenticate header for an HTTP response. |
![]() ![]() | RetryAfter | Gets or sets the value of the Retry-After header for an HTTP response. |
![]() ![]() | Server | Gets the value of the Server header for an HTTP response. |
![]() ![]() | Trailer | Gets the value of the Trailer header for an HTTP response. |
![]() ![]() | TransferEncoding | Gets the value of the Transfer-Encoding header for an HTTP response. |
![]() ![]() | TransferEncodingChunked | Gets or sets a value that indicates if the Transfer-Encoding header for an HTTP response contains chunked. |
![]() ![]() | Upgrade | Gets the value of the Upgrade header for an HTTP response. |
![]() ![]() | Vary | Gets the value of the Vary header for an HTTP response. |
![]() ![]() | Via | Gets the value of the Via header for an HTTP response. |
![]() ![]() | Warning | Gets the value of the Warning header for an HTTP response. |
![]() ![]() | WwwAuthenticate | Gets the value of the WWW-Authenticate header for an HTTP response. |
| 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.




