Windows apps
Collapse the table of content
Expand the table of content

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 HttpRequestHeaders DefaultRequestHeaders { get; }

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

Show:
© 2017 Microsoft