MCPcopy
hub / github.com/go-chi/chi / Flush

Method Flush

middleware/compress.go:337–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335}
336
337func (cw *compressResponseWriter) Flush() {
338 if f, ok := cw.writer().(http.Flusher); ok {
339 f.Flush()
340 }
341 // If the underlying writer has a compression flush signature,
342 // call this Flush() method instead
343 if f, ok := cw.writer().(compressFlusher); ok {
344 f.Flush()
345
346 // Also flush the underlying response writer
347 if f, ok := cw.ResponseWriter.(http.Flusher); ok {
348 f.Flush()
349 }
350 }
351}
352
353func (cw *compressResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
354 if hj, ok := cw.writer().(http.Hijacker); ok {

Callers

nothing calls this directly

Calls 2

writerMethod · 0.95
FlushMethod · 0.65

Tested by

no test coverage detected