-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] Possibility to override underlying HttpClient/HttpClientHandler for all HTTP requests #15283
[dotnet] Possibility to override underlying HttpClient/HttpClientHandler for all HTTP requests #15283
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice and simple, just a single comment
Quick question, should the |
I also was thinking about it, but then users will write: var handler = base.CreateHttpClientHandler();
handler.Proxy // hm, where is Proxy? And more useful properties from |
Failed CI not related to this changes. |
User description
Motivation and Context
Implements #15280
Types of changes
Checklist
PR Type
Enhancement
Description
Introduced the ability to override
HttpClientHandler
for all HTTP requests.Added a new protected method
CreateHttpClientHandler
for custom handler creation.Enhanced
CreateHttpClient
to utilize the newCreateHttpClientHandler
method.Improved flexibility for HTTP client customization in remote WebDriver interactions.
Changes walkthrough 📝
HttpCommandExecutor.cs
Added support for customizable HttpClientHandler
dotnet/src/webdriver/Remote/HttpCommandExecutor.cs
CreateHttpClientHandler
for creatingcustom
HttpClientHandler
.CreateHttpClient
to use the newCreateHttpClientHandler
method.
CreateHttpClient
andCreateHttpClientHandler
.