public boolean hasFlushed() {
        return flushed;
    }
Indicates whether or not the underlying buffer has been flushed.
resteasy/src/main/java/com/linecorp/armeria/internal/common/resteasy/ByteBufferBackedOutputStream.java