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)

public:
property HttpRequestHeaders^ DefaultRequestHeaders {
	HttpRequestHeaders^ get ();
}

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

Show:
© 2014 Microsoft