ResponseInformation.Headers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.