Share via


HttpClient Constructor

Initializes a new instance of the HttpClient class.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New HttpClient()
public HttpClient()
public:
HttpClient()
new : unit -> HttpClient
public function HttpClient()

Remarks

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

See Also

Reference

HttpClient Class

HttpClient Overload

System.Net.Http Namespace