@Override
    public final void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException {
        final SharedInputBuffer buffer = bufferRef.get();
        if (buffer != null) {
            buffer.markEndStream();
        }
    }
TODO: to be replaced by core functionality
httpclient5/src/main/java/org/apache/hc/client5/http/impl/compat/ClassicToAsyncResponseConsumer.java