ok2c commented on code in PR #828:
URL: 
https://github.com/apache/httpcomponents-client/pull/828#discussion_r3236824153


##########
httpclient5-jakarta-rest-client/src/main/java/org/apache/hc/client5/http/rest/RestClientResponse.java:
##########
@@ -87,6 +92,8 @@ final class RestClientResponse extends Response {
 
     private boolean closed;
     private Object cachedEntity;
+    private JsonNode jsonNode;
+    private boolean jsonParsed;
 
     RestClientResponse(final HttpResponse response, final byte[] body, final 
ObjectMapper objectMapper) {

Review Comment:
   @arturobernalg I would be better to digest the body into `JsonNode` directly 
if the content is known to be JSON bypassing byte[] altogether. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to