Partager via


HttpHeaders Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class HttpHeaders _
    Implements IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of String))),  _
    IEnumerable
'Usage
Dim instance As HttpHeaders
public abstract class HttpHeaders : IEnumerable<KeyValuePair<string, IEnumerable<string>>>, 
    IEnumerable
public ref class HttpHeaders abstract : IEnumerable<KeyValuePair<String^, IEnumerable<String^>^>>, 
    IEnumerable
[<AbstractClassAttribute>]
type HttpHeaders =  
    class 
        interface IEnumerable<KeyValuePair<string, IEnumerable<string>>>
        interface IEnumerable 
    end
public abstract class HttpHeaders implements IEnumerable<KeyValuePair<String, IEnumerable<String>>>, IEnumerable

The HttpHeaders type exposes the following members.

Constructors

  Name Description
Protected method HttpHeaders Initializes a new instance of the HttpHeaders class.

Top

Methods

  Name Description
Public method Add(String, IEnumerable<String>)
Public method Add(String, String)
Public method Clear
Public method Contains
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValues
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove
Public method ToString (Overrides Object.ToString().)
Public method TryAddWithoutValidation(String, IEnumerable<String>)
Public method TryAddWithoutValidation(String, String)
Public method TryGetValues

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator

Top

Thread Safety

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

See Also

Reference

System.Net.Http.Headers Namespace