hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] httpcomponents-client git commit: Added #toString()
Date Sun, 22 Oct 2017 15:19:01 GMT
Repository: httpcomponents-client
Updated Branches:
  refs/heads/master 23425a137 -> d054442cd


Added #toString()


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/commit/572a370f
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/tree/572a370f
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/diff/572a370f

Branch: refs/heads/master
Commit: 572a370f4b2d6e26a53e0424366e683fe3387865
Parents: 23425a1
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Sun Oct 22 17:13:45 2017 +0200
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Sun Oct 22 17:13:55 2017 +0200

----------------------------------------------------------------------
 .../org/apache/hc/client5/http/async/methods/SimpleBody.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-client/blob/572a370f/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java
----------------------------------------------------------------------
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java
b/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java
index 4c2028f..b96aa99 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java
@@ -95,5 +95,11 @@ public final class SimpleBody {
         return bodyAsBytes != null;
     }
 
+    @Override
+    public String toString() {
+        return "content length=" + (bodyAsBytes != null ? bodyAsBytes.length : "chunked")
+
+                ", content type=" + contentType;
+    }
+
 }
 


Mime
View raw message