HttpHeaderCollection Class

Represents a collection of HTTP headers.

Definition

Line 264 of System.Net.Http/HttpRequest.cm

Member Functions

public void Add(UniquePtr<HttpHeader>&& header)
public nothrow void Clear()
public ulong GetContentLength() const
public MimeType GetContentType() const
public DateTime GetDate() const
public HttpHeader* GetHeader(const String<char>& fieldName) const
public inline nothrow const List<UniquePtr<HttpHeader>>& Headers() const

Member Variables

private HashMap<String<char>, HttpHeader*, Hasher<String<char>>, EqualTo<String<char>>> headerMap
private List<UniquePtr<HttpHeader>> headers

Member Function Details

Add Member Function

public void Add(UniquePtr<HttpHeader>&& header)

Definition
Line 266 of System.Net.Http/HttpRequest.cm


Clear Member Function

public nothrow void Clear()

Definition
Line 292 of System.Net.Http/HttpRequest.cm


GetContentLength Member Function

public ulong GetContentLength()

Definition
Line 297 of System.Net.Http/HttpRequest.cm


GetContentType Member Function

public MimeType GetContentType()

Definition
Line 310 of System.Net.Http/HttpRequest.cm


GetDate Member Function

public DateTime GetDate()

Definition
Line 321 of System.Net.Http/HttpRequest.cm


GetHeader Member Function

public HttpHeader* GetHeader(const String<char>& fieldName)

Definition
Line 279 of System.Net.Http/HttpRequest.cm


Headers Member Function

public inline nothrow const List<UniquePtr<HttpHeader>>& Headers()

Definition
Line 288 of System.Net.Http/HttpRequest.cm