Skip to content

[http-client] Add SingleBodyAdapter for client API with only a single body type #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

rbygrave
Copy link
Contributor

This provides a way to minimise the dependencies of an HttpClient that only has a single body type to support.

That is, make it easier to use sayjust avaje-json-core or avaje-json-node as a dependency to handle the response body &/or request body where the http endpoint only has the single body type to support [and arguably avaje-jsonb or Jackson is a bit "overkill"].

An alternative is this is to just to use raw body content like String or byte[], and handle it all without a BodyAdapter but this provides a more explicit API for that use case..

… body type

This provides a way to minimise the dependencies of an HttpClient that only has a single body type to support.
@rbygrave rbygrave requested a review from SentryMan December 16, 2024 18:34
@rbygrave rbygrave self-assigned this Dec 16, 2024
@SentryMan
Copy link
Collaborator

seems kinda specific but ok

@rbygrave rbygrave merged commit 97fe4b6 into master Dec 16, 2024
7 checks passed
@rbygrave rbygrave deleted the feature/client-singleBodyAdapter branch December 16, 2024 19:05
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