Closed
Description
Feature and motivation
HttpCommandExecutor
entirely closed for any overriding to create HttpClient
:
It will be good to make it protected virtual
. Proposed API:
protected virtual HttpClientHandler CreateHttpClientHandler()
protected virtual HttpClient CreateHttpClient()
It also exposes initialization of HttpClientHandler
to make it possible to customize it, like ignoring certificate validation (appium/dotnet-client#455).
Usage example
class MyHttpCommandExecutor : HttpCommandExecutor
{
override CreateHttpClientHandler()
{
var handler = base.CreateHttpClientHandler();
handler.SomeProperty = "abc";
return handler;
}
}