MCPcopy Index your code
hub / github.com/VictoriaMetrics/VictoriaLogs / Flush

Method Flush

lib/httpserver/httpserver.go:606–618  ·  view source on GitHub ↗

Flush implements net/http.Flusher interface

()

Source from the content-addressed store, hash-verified

604
605// Flush implements net/http.Flusher interface
606func (rwa *responseWriterWithAbort) Flush() {
607 if rwa.aborted {
608 return
609 }
610 if !rwa.sentHeaders {
611 rwa.sentHeaders = true
612 }
613 flusher, ok := rwa.ResponseWriter.(http.Flusher)
614 if !ok {
615 logger.Panicf("BUG: it is expected http.ResponseWriter (%T) supports http.Flusher interface", rwa.ResponseWriter)
616 }
617 flusher.Flush()
618}
619
620// abort aborts the client connection associated with rwa.
621//

Callers 1

abortMethod · 0.45

Calls 1

PanicfFunction · 0.92

Tested by

no test coverage detected