public boolean isBytes() {
        return bodyAsBytes != null;
    }
Tests whether the body is currently cached as a byte array.

@return whether the body is currently cached as a byte array.
httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java