All Questions
2 questions
0
votes
1
answer
1k
views
CompletableFuture.get() outputs rather status than response body
I have the following scenario: I set up a client which sends an aynchronous HTTP reuqest to the server. The client receives a CompletableFuture. So far evertything works fine. However, I cannot access ...
1
vote
0
answers
1k
views
How to get data from a REST API endpoint that returns CompletableFuture
Folks,
My http endpoint returns CompletableFuture
@HttpEndpoint
public CompletableFuture<Student> processStudent(Request request){
return CompletableFuture.supplyAsync(()->saveStudent(...