Closed
Description
It's useful to be able to tell the payload compression stream to flush its content, for example when wanting the browser to render the HTML document <head>
and download the associated resources while you're still generating or writing the document body.
Express's compression middleware achieves this by offering a res.flush()
method. I think something similar would be useful in hapi for better control of streaming compressed content.