MCPcopy
hub / github.com/caddyserver/caddy / Flush

Method Flush

modules/caddyhttp/reverseproxy/fastcgi/writer.go:131–137  ·  view source on GitHub ↗

Flush write buffer data to the underlying connection, it assumes header data is the first 8 bytes of buf

()

Source from the content-addressed store, hash-verified

129
130// Flush write buffer data to the underlying connection, it assumes header data is the first 8 bytes of buf
131func (w *streamWriter) Flush() error {
132 w.h.init(w.recType, w.c.reqID, w.buf.Len()-8)
133 w.writeHeader()
134 w.buf.Write(pad[:w.h.PaddingLength])
135 _, err := w.buf.WriteTo(w.c.rwc)
136 return err
137}
138
139// FlushStream flush data then end current stream
140func (w *streamWriter) FlushStream() error {

Callers 3

WriteMethod · 0.95
writePairsMethod · 0.95
FlushStreamMethod · 0.95

Calls 5

writeHeaderMethod · 0.95
WriteToMethod · 0.80
initMethod · 0.45
LenMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected