Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpRequestHeaders Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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 propertyAcceptGets the value of the Accept header for an HTTP request.
Public propertyAcceptCharsetGets the value of the Accept-Charset header for an HTTP request.
Public propertyAcceptEncodingGets the value of the Accept-Encoding header for an HTTP request.
Public propertyAcceptLanguageGets the value of the Accept-Language header for an HTTP request.
Public propertyAuthorizationGets or sets the value of the Authorization header for an HTTP request.
Public propertyCacheControlGets or sets the value of the Cache-Control header for an HTTP request.
Public propertyConnectionGets the value of the Connection header for an HTTP request.
Public propertyConnectionCloseGets or sets a value that indicates if the Connection header for an HTTP request contains Close.
Public propertyDateGets or sets the value of the Date header for an HTTP request.
Public propertyExpectGets the value of the Expect header for an HTTP request.
Public propertyExpectContinueGets or sets a value that indicates if the Expect header for an HTTP request contains Continue.
Public propertyFromGets or sets the value of the From header for an HTTP request.
Public propertyHostGets or sets the value of the Host header for an HTTP request.
Public propertyIfMatchGets the value of the If-Match header for an HTTP request.
Public propertyIfModifiedSinceGets or sets the value of the If-Modified-Since header for an HTTP request.
Public propertyIfNoneMatchGets the value of the If-None-Match header for an HTTP request.
Public propertyIfRangeGets or sets the value of the If-Range header for an HTTP request.
Public propertyIfUnmodifiedSinceGets or sets the value of the If-Unmodified-Since header for an HTTP request.
Public propertyMaxForwardsGets or sets the value of the Max-Forwards header for an HTTP request.
Public propertyPragmaGets the value of the Pragma header for an HTTP request.
Public propertyProxyAuthorizationGets or sets the value of the Proxy-Authorization header for an HTTP request.
Public propertyRangeGets or sets the value of the Range header for an HTTP request.
Public propertyReferrerGets or sets the value of the Referer header for an HTTP request.
Public propertyTEGets the value of the TE header for an HTTP request.
Public propertyTrailerGets the value of the Trailer header for an HTTP request.
Public propertyTransferEncodingGets the value of the Transfer-Encoding header for an HTTP request.
Public propertyTransferEncodingChunkedGets or sets a value that indicates if the Transfer-Encoding header for an HTTP request contains chunked.
Public propertyUpgradeGets the value of the Upgrade header for an HTTP request.
Public propertyUserAgentGets the value of the User-Agent header for an HTTP request.
Public propertyViaGets the value of the Via header for an HTTP request.
Public propertyWarningGets the value of the Warning header for an HTTP request.
Top
  NameDescription
Public methodAdd(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodAdd(String, String)Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodAddWithoutValidation(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.)
Public methodAddWithoutValidation(String, String)Adds the specified header and its the value into the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.)
Public methodClearRemoves all headers from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodContainsReturns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValuesReturns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodToString (Inherited from HttpHeaders.)
Public methodTryGetValuesReturn if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Top

This type is derived from HttpHeaders.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.