public HttpResponse returnResponse() throws IOException {
        assertNotConsumed();
        try {
            final HttpEntity entity = this.response.getEntity();
            return ClassicResponseBuilder.copy(response)
                    .setEntity(entity != null ?
                            new ByteArrayEntity(
                                    EntityUtils.toByteArray(entity),
                                    ContentType.parse(entity.getContentType()))
                            : null)
                    .build();
        } finally {
            this.consumed = true;
            this.response.close();
        }
    }
Handles the response using the specified {@link HttpClientResponseHandler}
httpclient5-fluent/src/main/java/org/apache/hc/client5/http/fluent/Response.java