-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsI-enhancementSomething could be betterSomething could be better
Description
Feature and motivation
HttpCommandExecutor entirely closed for any overriding to create HttpClient:
| private HttpClient CreateHttpClient() |
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;
}
}Dor-bl and RenderMichael
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsI-enhancementSomething could be betterSomething could be better