Export (0) Print
Expand All
Expand Minimize

HttpResponseHeader Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

The HTTP headers that can be specified in a server response.

Namespace: System.Net
Assembly: System (in system.dll)

'Declaration
Public Enumeration HttpResponseHeader
'Usage
Dim instance As HttpResponseHeader

public enum HttpResponseHeader
public enum HttpResponseHeader

 Member nameDescription
AcceptRangesThe Accept-Ranges header, which specifies the range that is accepted by the server. 
AgeThe Age header, which specifies the time, in seconds, since the response was generated by the originating server. 
AllowThe Allow header, which specifies the set of HTTP methods that are supported. 
CacheControlThe Cache-Control header, which specifies caching directives that must be obeyed by all caching mechanisms along the request/response chain. 
ConnectionThe Connection header, which specifies options that are desired for a particular connection. 
ContentEncodingThe Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data. 
ContentLanguageThe Content-Langauge header, which specifies the natural language or languages of the accompanying body data. 
ContentLengthThe Content-Length header, which specifies the length, in bytes, of the accompanying body data. 
ContentLocationThe Content-Location header, which specifies a URI from which the accompanying body can be obtained. 
ContentMd5The Content-MD5 header, which specifies the MD5 digest of the accompanying body data, for the purpose of providing an end-to-end message integrity check. 
ContentRangeThe Range header, which specifies the subrange or subranges of the response that the client requests be returned in lieu of the entire response. 
ContentTypeThe Content-Type header, which specifies the MIME type of the accompanying body data. 
DateThe Date header, which specifies the date and time at which the response originated. 
ETagThe Etag header, which specifies the current value for the requested variant.  
ExpiresThe Expires header, which specifies the date and time after which the accompanying body data should be considered stale. 
KeepAliveThe Keep-Alive header, which specifies a parameter to be used to maintain a persistent connection. 
LastModifiedThe Last-Modified header, which specifies the date and time at which the accompanying body data was last modified. 
LocationThe Location header, which specifies a URI to which the client is redirected to obtain the requested resource. 
PragmaThe Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain. 
ProxyAuthenticateThe Proxy-Authenticate header, which specifies that the client must authenticate itself to a proxy. 
RetryAfterThe Retry-After header, which specifies a time (in seconds), or a date and time, after which the client can retry its request. 
ServerThe Server header, which specifies information about the originating server agent. 
SetCookieThe Set-Cookie header, which specifies cookie data that is presented to the client. 
TrailerThe Trailer header, which specifies that the indicated header fields are present in the trailer of a message that is encoded with chunked transfer-coding. 
TransferEncodingThe Transfer-Encoding header, which specifies what (if any) type of transformation has been applied to the message body. 
UpgradeThe Upgrade header, which specifies additional communications protocols that the client supports. 
VaryThe Vary header, which specifies the request headers that are used to determine whether a cached response is fresh. 
ViaThe Via header, which specifies intermediate protocols to be used by gateway and proxy agents. 
WarningThe Warning header, which specifies additional information about that status or transformation of a message that might not be reflected in the message. 
WwwAuthenticateThe WWW-Authenticate header, which specifies that the client must authenticate itself to the server. 

The appropriate contents of various headers are described in detail in the HTTP/1.1 specification.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft