Skip to content

Issue-625: allow injecting a custom HttpClient into the Ds3Client without relying solely on the internal builder logic.#627

Open
RachelTucker wants to merge 1 commit into
masterfrom
issue_625
Open

Issue-625: allow injecting a custom HttpClient into the Ds3Client without relying solely on the internal builder logic.#627
RachelTucker wants to merge 1 commit into
masterfrom
issue_625

Conversation

@RachelTucker
Copy link
Copy Markdown
Contributor

  • Changed the access modifier of the NetworkClientImpl constructor that accepts a CloseableHttpClient from private to public, enabling external injection of custom-configured HTTP clients.
  • Added a withNetworkClient(NetworkClient) method to Ds3ClientBuilder to allow users to provide a pre-configured NetworkClient (potentially wrapping a custom HttpClient) through the builder interface.
  • Updated the Ds3ClientBuilder.build() method to prioritize the provided networkClient if it has been set.

- Resolved issue #625 to allow injecting a custom HttpClient into the Ds3Client without relying solely on the internal builder logic.

### Changes
- Changed the access modifier of the NetworkClientImpl constructor that accepts a CloseableHttpClient from private to public, enabling external injection of custom-configured HTTP clients.
- Added a withNetworkClient(NetworkClient) method to Ds3ClientBuilder to allow users to provide a pre-configured NetworkClient (potentially wrapping a custom HttpClient) through the builder interface.
- Updated the Ds3ClientBuilder.build() method to prioritize the provided networkClient if it has been set.
@RachelTucker RachelTucker requested a review from scribe May 8, 2026 17:07
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.

1 participant