gin icon indicating copy to clipboard operation
gin copied to clipboard

Feature: Add DataFromStream

Open letmutx opened this issue 1 year ago • 0 comments

DataFromReader has buffering on the HTTP response, so it is not suitable to stream data to a client. DataFromStream disables buffering and flushes data as soon as it is sent to the HTTP body.

Admittedly, we could let users control when we do the flushing, say, every N bytes. But I wanted to know if there's interest in this feature before building more things.

letmutx avatar Jul 02 '22 10:07 letmutx