@Override
    public final void updateCapacity(final CapacityChannel capacityChannel) throws IOException {
        final SharedInputBuffer buffer = bufferRef.get();
        if (buffer != null) {
            buffer.updateCapacity(capacityChannel);
        }
    }
TODO: to be replaced by core functionality
httpclient5/src/main/java/org/apache/hc/client5/http/impl/compat/ClassicToAsyncResponseConsumer.java