ResponseInformation.Headers Property

Definition

Gets all response headers sent by the server.

public:
 property IMapView<Platform::String ^, Platform::String ^> ^ Headers { IMapView<Platform::String ^, Platform::String ^> ^ get(); };
IMapView<winrt::hstring, winrt::hstring const&> Headers();
public IReadOnlyDictionary<string,string> Headers { get; }
var iMapView = responseInformation.headers;
Public ReadOnly Property Headers As IReadOnlyDictionary(Of String, String)

Property Value

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

Contains all response headers sent by the server.

Remarks

The dictionary returned by the Headers property stores header names (as its keys) in the case that the server sends, which can vary between servers and/or HTTP versions. The dictionary also performs key lookups case-sensitively. If the server sends the header name Content-Length, then the dictionary stores it that way, and you'll need to use that same case as a lookup key. Header values are stored exactly as they come over the wire.

Applies to

See also