MCPcopy
hub / github.com/prometheus/client_golang / Flush

Method Flush

prometheus/promhttp/delegator.go:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (d flusherDelegator) Flush() {
99 // If applicable, call WriteHeader here so that observeWriteHeader is
100 // handled appropriately.
101 if !d.wroteHeader {
102 d.WriteHeader(http.StatusOK)
103 }
104 d.ResponseWriter.(http.Flusher).Flush()
105}
106
107func (d hijackerDelegator) Hijack() (net.Conn, *bufio.ReadWriter, error) {
108 return d.ResponseWriter.(http.Hijacker).Hijack()

Callers 5

WriteUnifiedDiffFunction · 0.45
writeMetricsFunction · 0.45
TestSanitizeFunction · 0.45

Calls 1

WriteHeaderMethod · 0.45

Tested by 3

TestSanitizeFunction · 0.36