{{ message }}
Repository navigation
feat(http-client): allow to construct a JdkA2AHttpClient with a prebuilt HttpClient - #745
Merged
Merged
Conversation
Allows to configure the HTTP client for environment specific circumstances, e.g. by configuring a proxy or a specific SSL context.
Contributor
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a valuable feature allowing the JdkA2AHttpClient to be constructed with a pre-built java.net.http.HttpClient. This enhances flexibility by enabling users to configure environment-specific settings like proxies or custom SSL contexts. The implementation is well-executed, featuring a new constructor with proper null-checking and a clean refactoring of the default constructor. The accompanying tests are thorough, covering the new functionality, regression, and edge cases. The documentation update in the README is also clear and helpful.
ehsavoie
approved these changes
Mar 16, 2026
Contributor
Author
|
@ehsavoie thanks for the review! Anything left before we can merge this? |
Collaborator
salaboy
pushed a commit
to salaboy/a2a-java
that referenced
this pull request
Jun 19, 2026
…ilt HttpClient (a2aproject#745) # Description A prebuilt HttpClient can be used to adapt for environment specific circumstances, e.g. by configuring a proxy or a specific SSL context. - [x] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [x] Appropriate READMEs were updated (if necessary) Fixes a2aproject#744 🦕
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
A prebuilt HttpClient can be used to adapt for environment specific circumstances, e.g. by configuring a proxy or a specific SSL context.
CONTRIBUTINGGuide.fix:which represents bug fixes, and correlates to a SemVer patch.feat:represents a new feature, and correlates to a SemVer minor.feat!:, orfix!:,refactor!:, etc., which represent a breaking change (indicated by the!) and will result in a SemVer major.Fixes #744 🦕