-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[API Proposal]:Add property to HttpClient #110555
Comments
Tagging subscribers to this area: @dotnet/ncl |
An It's also not possible to change settings on |
I modified it this way, but I’d like to do it without hacks.
|
Wouldn't sharing |
Per-session / per-request overrides (cookies, proxies, default headers, certs, etc) are already tracked in |
Tagging subscribers to this area: @dotnet/ncl |
The proposed API is problematic for the reasons called out in #110555 (comment). The scenario itself is already covered by existing discussions that Natalia linked - #110555 (comment). |
Background and motivation
I propose adding a property called ClientHandler to HttpClient, which would allow direct access to the underlying HttpClientHandler. When creating an instance of HttpClient, parameters like cookies or connection settings can be configured. However, once the object is passed to a class, there's no way to modify these settings further.
API Proposal
API Usage
Alternative Designs
No response
Risks
No response
The text was updated successfully, but these errors were encountered: