Skip to content

Allow configuration of HttpClient by making HttpClientRestClient extensible #54

Closed
@MosheElisha

Description

@MosheElisha

Hi,

I would like to create a TracingHttpClientBuilder instead of the default HttpClientBuilder.create();.

One alternative is to create a protected method inside HttpClientRestClient:

@NotNull
protected HttpClientBuilder createHttpClientBuilder() {
     return HttpClientBuilder.create();
}

and use it inside the init method:

// Setup client builder
final HttpClientBuilder clientBuilder = createHttpClientBuilder();

With that method, I can create my own class that extends HttpClientRestClient and overrides the createHttpClientBuilder method.

If you prefer a different alternative or have a solution that does not require a PR, please let me know.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions