ClientFactory.CreateHttpClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateHttpClient(String, HttpMessageHandler) | |
CreateHttpClient(String, ICredentials) |
CreateHttpClient(String, HttpMessageHandler)
public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.Http.HttpMessageHandler effectiveHandler);
abstract member CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, effectiveHandler As HttpMessageHandler) As HttpClient
Parameters
- endpoint
- String
- effectiveHandler
- HttpMessageHandler
Returns
Implements
Applies to
CreateHttpClient(String, ICredentials)
public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.ICredentials credentials);
abstract member CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, credentials As ICredentials) As HttpClient
Parameters
- endpoint
- String
- credentials
- ICredentials