HttpClient::DefaultRequestHeaders Property
Gets the headers which should be sent with each request.
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
For a complete example of using the HttpClient class, see Calling a Web API From a .NET Client
Show: