-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
featureNew functionality or improvementNew functionality or improvement
Milestone
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.
Streaming compressed payload with hapi
Streaming compressed payload with express+compression
lidel
Metadata
Metadata
Assignees
Labels
featureNew functionality or improvementNew functionality or improvement