Propose OpenSpec change: JDK HttpClient-based ApiClient transport - #893
Merged
thibauult merged 2 commits intoAug 12, 2026
Merged
Conversation
Adds a third symphony-bdk-http implementation on top of java.net.http.HttpClient, giving consumers a zero-third-party-dependency alternative to jersey2/webclient.
…(D12) symphony-bdk-http-jersey2 carries the largest dependency/CVE surface for a filter-chain benefit nothing in the codebase uses. Make the new jdk module the documented default for symphony-bdk-core and mark jersey2's public classes @API(DEPRECATED) as a soft, non-removing signal — no functional change, no forced migration.
thibauult
added a commit
that referenced
this pull request
Aug 12, 2026
… transport (#894) * Propose OpenSpec change: JDK HttpClient-based ApiClient transport (#893) * Propose OpenSpec change: JDK HttpClient-based ApiClient transport Adds a third symphony-bdk-http implementation on top of java.net.http.HttpClient, giving consumers a zero-third-party-dependency alternative to jersey2/webclient. * Deprecate jersey2's default status in favor of symphony-bdk-http-jdk (D12) symphony-bdk-http-jersey2 carries the largest dependency/CVE surface for a filter-chain benefit nothing in the codebase uses. Make the new jdk module the documented default for symphony-bdk-core and mark jersey2's public classes @API(DEPRECATED) as a soft, non-removing signal — no functional change, no forced migration. * Add symphony-bdk-http-jdk module, a java.net.http.HttpClient-based ApiClient Implements the OpenSpec change jdk-httpclient-transport: a third ApiClient implementation with zero third-party HTTP dependencies, becoming the new documented default for symphony-bdk-core. symphony-bdk-http-jersey is deprecated (soft, non-removing @API status change) in that role but keeps shipping unchanged. * Address PR review nits on JDK HttpClient transport - Document ClassCastException risk in addFilter due to generics erasure - Wrap InvalidPathException from file.toPath() in ApiException for multipart uploads - Normalize slashes between basePath and path when building request URIs
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.
Summary
symphony-bdk-http-jdkmodule implementing the BDKApiClient/ApiClientBuildercontract on top ofjava.net.http.HttpClient, giving consumers a zero-third-party-dependency alternative to the existing jersey2/webclient implementations.symphony-bdk-http-jersey2(param encoding, JSON serialization, tracing headers, file downloads, TLS/proxy config, retry-compatible exception translation), with two documented, deliberate gaps (read-timeout mapping, filter chain narrowing) called out explicitly.symphony-bdk-http-apicontracts or existing modules; Spring Boot starter wiring is explicitly out of scope for this change.This is an OpenSpec proposal only (
openspec/changes/jdk-httpclient-transport/) — no implementation code yet.Test plan
openspec-apply-change