HttpHeaders Class

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

A collection of headers and their values as defined in RFC 2616.

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

public abstract class HttpHeaders : IEnumerable<KeyValuePair<string, IEnumerable<string>>>, 
	IEnumerable

The HttpHeaders type exposes the following members.

  NameDescription
Protected methodHttpHeadersInitializes a new instance of the HttpHeaders class.
Top

  NameDescription
Public methodAdd(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection.
Public methodAdd(String, String)Adds the specified header and its value into the HttpHeaders collection.
Public methodAddWithoutValidation(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection without validating the provided information.
Public methodAddWithoutValidation(String, String)Adds the specified header and its the value into the HttpHeaders collection without validating the provided information.
Public methodClearRemoves all headers from the HttpHeaders collection.
Public methodContainsReturns if a specific header exists in the HttpHeaders collection.
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.
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.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves the specified header from the HttpHeaders collection.
Public methodToString (Overrides Object.ToString().)
Public methodTryGetValuesReturn if a specified header and specified values are stored in the HttpHeaders collection.
Top

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: