expose compressor flush method as res.flush()

not sure how to test