Open pavolloffay opened 3 years ago
Future<HttpResponse> responseFuture = client.execute(request, null); HttpResponse response = responseFuture.get(); if (response.getEntity() == null || response.getEntity().getContentLength() <= 0) { return Pair.of(response.getStatusLine().getStatusCode(), null); } String responseBody = readInputStream(response.getEntity().getContent());