Added #toString()

This commit is contained in:
Oleg Kalnichevski 2017-10-22 17:13:45 +02:00
parent 23425a1379
commit 572a370f4b
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}