Repository navigation
feat(client): add opt-in GET redirect following and expose via transport config - #1257
Merged
Merged
Conversation
…ort config - Add GetBuilder.followRedirects(boolean) to A2AHttpClient; JDK, Vert.x, and Android implement one SDK-managed hop filtered by RedirectHeaderPolicy - JdkA2AHttpClient unconditionally bypasses native redirects for GET, DELETE, and SSE regardless of the supplied HttpClient policy - Add followRedirects(boolean) to JSONRPCTransportConfigBuilder and RestTransportConfigBuilder and propagate through the transport chain - A2ACardResolver enables GET redirect following for agent-card discovery Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
jmesnil
approved these changes
Nov 2, 2026
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.
Add opt-in, one-hop redirect following for synchronous GET requests across the JDK, Vert.x, and Android HTTP clients, using the shared
RedirectHeaderPolicy. Agent-card discovery enables this automatically.Expose
followRedirects(boolean)through JSON-RPC and REST transport configuration, and propagate it through the OpenTelemetry HTTP client wrapper. JDK GET, DELETE, and SSE requests use a client with native redirects disabled so redirect behavior stays under SDK control; streaming requests do not follow redirects.Includes redirect and transport configuration tests and updated documentation. Validation is left to CI.