@Override
    public int available() {
        final AsyncEntityProducer producer = entityProducerRef.get();
        Asserts.notNull(producer, "Entity producer");
        return producer.available();
    }
A handler that echos the incoming request entity.
httpclient5-testing/src/main/java/org/apache/hc/client5/testing/async/AsyncEchoHandler.java