Skip to content
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

httpclient builder: tls strategy customization #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jan-berge-ommedal
Copy link

Signed-off-by: Jan Berge Sommerdahl [email protected]

Description

Allows custom tls strategies to be used with ApacheHttpClient5TransportBuilder

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@wbeckler
Copy link

wbeckler commented Feb 1, 2023

Hi Jan
Would you be willing to open a related issue for this with sample code of how you would want to see it used (ideally this will end up in the documentation)? Would you be up for adding a unit test? This also merits a changelog entry.

*
* @param tlsStrategy custom tlsStrategy
*/
public ApacheHttpClient5TransportBuilder setTlsStrategy(TlsStrategy tlsStrategy) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think providing the way to customize the TlsStrategy would be beneficial (right now you could do that by providing own connectionManager instance, which is verbose). However we should do that iin a way to keep API concise, relying on XxxCallback hooks, for example RequestConfigCallback, HttpClientConfigCallback.

    public interface ClientTlsStrategyConfigCallback {
        ClientTlsStrategyBuilder customizeClientTlsStrategyClientTlsStrategyBuilder clientTlsStrategyBuilder);
    }

@bbarani
Copy link
Member

bbarani commented Sep 25, 2023

@wbeckler @reta @jan-berge-ommedal Anyone looking in to this PR?

@reta
Copy link
Collaborator

reta commented Sep 25, 2023

@wbeckler @reta @jan-berge-ommedal Anyone looking in to this PR?

AFAIK, nope

@dblock
Copy link
Member

dblock commented Jul 15, 2024

Sorry about the delay. Happy to look at the PR, needs tests, CHANGELOG and documentation, please? @jan-berge-ommedal

[Catch All Triage - 1, 2, 3, 4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants