Provide a way to send a JSON object with WebClient
#3707
Labels
Comments
|
|
|
+1 to having |
|
It would also be nice to have APIs that automatically convert a response into an object.
interface HttpResponse {
<T> CompletableFuture<T> aggregateAs(Class<? extends T> clazz);
<T> CompletableFuture<T> aggregateAs(HttpStatus expectedStatus, Class<? extends T> clazz);
<T> CompletableFuture<T> aggregateAs(HttpStatus expectedStatus, Class<? extends T> clazz, EventExecutor executor);
} |
|
I'm interested in this! |
|
Thanks! It's all yours. |
karellen-kim
pushed a commit
to karellen-kim/armeria
that referenced
this issue
Jul 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


JSON is the dominant exchange format for REST API.
However, Armeria's
WebClientdoes not provide any JSON-specific APIs.I believe it should be useful additions if we provide:
The text was updated successfully, but these errors were encountered: