HttpClient.DefaultRequestHeaders Property
.NET Framework (current version)
Gets the headers which should be sent with each request.
Assembly: System.Net.Http (in System.Net.Http.dll)
Property Value
Type: System.Net.Http.Headers.HttpRequestHeadersThe headers which should be sent with each request.
Headers set on this property don't need to be set on request messages again.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: