HttpResponseMessage.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 the collection of HTTP response headers associated with the HttpResponseMessage that were sent by the server.
public:
property HttpResponseHeaderCollection ^ Headers { HttpResponseHeaderCollection ^ get(); };
HttpResponseHeaderCollection Headers();
public HttpResponseHeaderCollection Headers { get; }
var httpResponseHeaderCollection = httpResponseMessage.headers;
Public ReadOnly Property Headers As HttpResponseHeaderCollection
Property Value
The collection of HTTP response headers.
Remarks
The Headers property returns an HttpResponseHeaderCollection object that can be used to get or set the specific headers on the HTTP response.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for