Export (0) Print
Expand All

HttpRequestHeaders Class

.NET Framework 4.5

Represents the collection of Request Headers as defined in RFC 2616.

System.Object
  System.Net.Http.Headers.HttpHeaders
    System.Net.Http.Headers.HttpRequestHeaders

Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

public sealed class HttpRequestHeaders : HttpHeaders

The HttpRequestHeaders type exposes the following members.

  NameDescription
Public propertySupported in .NET for Windows Store appsAcceptGets the value of the Accept header for an HTTP request.
Public propertySupported in .NET for Windows Store appsAcceptCharsetGets the value of the Accept-Charset header for an HTTP request.
Public propertySupported in .NET for Windows Store appsAcceptEncodingGets the value of the Accept-Encoding header for an HTTP request.
Public propertySupported in .NET for Windows Store appsAcceptLanguageGets the value of the Accept-Language header for an HTTP request.
Public propertySupported in .NET for Windows Store appsAuthorizationGets or sets the value of the Authorization header for an HTTP request.
Public propertySupported in .NET for Windows Store appsCacheControlGets or sets the value of the Cache-Control header for an HTTP request.
Public propertySupported in .NET for Windows Store appsConnectionGets the value of the Connection header for an HTTP request.
Public propertySupported in .NET for Windows Store appsConnectionCloseGets or sets a value that indicates if the Connection header for an HTTP request contains Close.
Public propertySupported in .NET for Windows Store appsDateGets or sets the value of the Date header for an HTTP request.
Public propertySupported in .NET for Windows Store appsExpectGets the value of the Expect header for an HTTP request.
Public propertySupported in .NET for Windows Store appsExpectContinueGets or sets a value that indicates if the Expect header for an HTTP request contains Continue.
Public propertySupported in .NET for Windows Store appsFromGets or sets the value of the From header for an HTTP request.
Public propertySupported in .NET for Windows Store appsHostGets or sets the value of the Host header for an HTTP request.
Public propertySupported in .NET for Windows Store appsIfMatchGets the value of the If-Match header for an HTTP request.
Public propertySupported in .NET for Windows Store appsIfModifiedSinceGets or sets the value of the If-Modified-Since header for an HTTP request.
Public propertySupported in .NET for Windows Store appsIfNoneMatchGets the value of the If-None-Match header for an HTTP request.
Public propertySupported in .NET for Windows Store appsIfRangeGets or sets the value of the If-Range header for an HTTP request.
Public propertySupported in .NET for Windows Store appsIfUnmodifiedSinceGets or sets the value of the If-Unmodified-Since header for an HTTP request.
Public propertySupported in .NET for Windows Store appsMaxForwardsGets or sets the value of the Max-Forwards header for an HTTP request.
Public propertySupported in .NET for Windows Store appsPragmaGets the value of the Pragma header for an HTTP request.
Public propertySupported in .NET for Windows Store appsProxyAuthorizationGets or sets the value of the Proxy-Authorization header for an HTTP request.
Public propertySupported in .NET for Windows Store appsRangeGets or sets the value of the Range header for an HTTP request.
Public propertySupported in .NET for Windows Store appsReferrerGets or sets the value of the Referer header for an HTTP request.
Public propertySupported in .NET for Windows Store appsTEGets the value of the TE header for an HTTP request.
Public propertySupported in .NET for Windows Store appsTrailerGets the value of the Trailer header for an HTTP request.
Public propertySupported in .NET for Windows Store appsTransferEncodingGets the value of the Transfer-Encoding header for an HTTP request.
Public propertySupported in .NET for Windows Store appsTransferEncodingChunkedGets or sets a value that indicates if the Transfer-Encoding header for an HTTP request contains chunked.
Public propertySupported in .NET for Windows Store appsUpgradeGets the value of the Upgrade header for an HTTP request.
Public propertySupported in .NET for Windows Store appsUserAgentGets the value of the User-Agent header for an HTTP request.
Public propertySupported in .NET for Windows Store appsViaGets the value of the Via header for an HTTP request.
Public propertySupported in .NET for Windows Store appsWarningGets the value of the Warning header for an HTTP request.
Top

  NameDescription
Public methodSupported in .NET for Windows Store appsAdd(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsAdd(String, String)Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsClearRemoves all headers from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsContainsReturns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetEnumeratorReturns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetValuesReturns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsRemoveRemoves the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsToStringReturns a string that represents the current HttpHeaders object. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsTryAddWithoutValidation(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.)
Public methodSupported in .NET for Windows Store appsTryAddWithoutValidation(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.)
Public methodSupported in .NET for Windows Store appsTryGetValuesReturn if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported in .NET for Windows Store appsIEnumerable.GetEnumeratorGets an enumerator that can iterate through a HttpHeaders. (Inherited from HttpHeaders.)
Top

This type is derived from HttpHeaders.

.NET Framework

Supported in: 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft