private CompletionStage String getContent HttpResponse response return

1
2
3
4
5
6
7
8
9
// private CompletionStage<String> getContent(HttpResponse response) {
// return response.entity().toStrict(3000, materializer)
// .thenApply(strict -> strict.getData().utf8String());
// }
//
// private CompletionStage<HttpResponse> fetch(String url) {
// log.info("Sending request to " + url);
// return http.singleRequest(HttpRequest.create(url));
// }