feat: stream return.
This commit is contained in:
@@ -55,3 +55,10 @@ func (w *gzipResponseWriter) Write(data []byte) (int, error) {
|
||||
func (w *gzipResponseWriter) WriteString(s string) (int, error) {
|
||||
return w.gzWriter.Write([]byte(s))
|
||||
}
|
||||
|
||||
func (w *gzipResponseWriter) Flush() {
|
||||
w.gzWriter.Flush()
|
||||
if flusher, ok := w.ResponseWriter.(http.Flusher); ok {
|
||||
flusher.Flush()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user