-
Notifications
You must be signed in to change notification settings - Fork 17
Allow lib user to change ssl factory #84
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
Allow lib user to change ssl factory #84
Conversation
Hey hey! Just trying to better understand what you're trying to do. Is this a possible solution for you?
|
I guess basically, does the HttpClientConfigHooks interface support what you're trying to do? |
This is what I did but the SSL parts of:
aren't used in the code.
but since HttpsContextBuilder is package private, I can't override this method. Thefore my PR. |
Ah gotcha, I'm following now! Makes sense, will merge it in |
If I can give some architectural recommendations I would remove SSL stuff from the HttpClientBuilder since they are never used. At least it seems to me there are never used. |
Yes it come from:
and not from:
But i just saw that HttpClientBuilder is from an other apache library so you can't modify it. |
I'll try to get an updated release published here shortly. Thanks! |
We wanted to inject a factory from sslcontext-kickstart.
I couldn't find any other solution to fork the repo and make HttpsContextBuilder so I could extend it to override: