Skip to content

feat(http-client)!: unify configuration and redirect handling - #1255

Merged
kabir merged 1 commit into
a2aproject:mainfrom
kabir:http-client-configuration
Nov 2, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
kabir:http-client-configuration

Conversation

@kabir

@kabir kabir commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

HTTP client provider selection, SSE parser limits, and redirect settings are currently configured through separate entry points. Introduce A2AHttpClientConfiguration to configure them together, and select only providers that support the requested settings. Existing factory overloads remain available and are deprecated in favor of the configuration API.

Apply a shared RedirectHeaderPolicy to explicitly enabled, one-hop synchronous POST redirects across the JDK, Vert.x, and Android implementations. Update transport configuration, client creation, documentation, and tests to use the common configuration.

Behavior changes: injected JDK clients must use HttpClient.Redirect.NEVER when enabling SDK-managed POST redirects. Providers that cannot honor explicitly configured SSE limits are skipped instead of falling back to one that ignores them.

- Configure provider selection, SSE limits, and redirect headers centrally.
- Apply one-hop POST redirects consistently across HTTP implementations.

Signed-off-by: Emmanuel Hugonnet <[email protected]>
@kabir
kabir merged commit e3c8ef3 into a2aproject:main Nov 2, 2026
16 checks passed
@kabir kabir mentioned this pull request Nov 3, 2026
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.

2 participants