Skip to main content
HttpClient.HttpClient() constructor

Applies to Windows and Windows Phone

Initializes a new instance of the HttpClient class.

Syntax


var httpClient = new Windows.Web.Http.HttpClient();

public HttpClient()

Public Sub New ()

public:
HttpClient()

Parameters

This constructor has no parameters.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

HttpClient
HttpClient(IHttpFilter)