Export (0) Print
Expand All

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)

'Declaration
Public ReadOnly Property DefaultRequestHeaders As HttpRequestHeaders 
	Get
'Usage
Dim instance As HttpClient 
Dim value As HttpRequestHeaders 

value = instance.DefaultRequestHeaders

For a complete example of using the HttpClient class, see Calling a Web API From a .NET Client

Show:
© 2014 Microsoft