Dela via


HttpResponseMessage.Headers Property

Definition

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