CreateHttpClient(HttpMessageHandler) Method
Creates a new HttpClient instance that uses a custom message handler.

Syntax

public HttpClient CreateHttpClient(HttpMessageHandler handler)

Parameters

Name Type Description
handler HttpMessageHandler The message handler to use for this client.

Return Value

Type Description
HttpClient A new HttpClient instance.