Export (0) Print
Expand All

HttpClient.DefaultRequestHeaders Property

.NET Framework 4.5

Gets the headers which should be sent with each request.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

member DefaultRequestHeaders : HttpRequestHeaders with get

Property Value

Type: System.Net.Http.Headers.HttpRequestHeaders
Returns HttpRequestHeaders.
The headers which should be sent with each request.

Headers set on this property don't need to be set on request messages again.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft