HttpResponseMessage.Headers HttpResponseMessage.Headers HttpResponseMessage.Headers HttpResponseMessage.Headers HttpResponseMessage.Headers Property

Definition

Gets the collection of HTTP response headers associated with the HttpResponseMessage that were sent by the server.

public : HttpResponseHeaderCollection Headers { get; }
HttpResponseHeaderCollection Headers();
public HttpResponseHeaderCollection Headers { get; }
Public ReadOnly Property Headers As HttpResponseHeaderCollection
var httpResponseHeaderCollection = httpResponseMessage.headers;

Property Value

Remarks

The Headers property returns an HttpResponseHeaderCollection object that can be used to get or set the specific headers on the HTTP response.

See also