MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / Close

Method Close

pkg/waveapp/streamingresp.go:119–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (w *StreamingResponseWriter) Close() error {
120 if !w.headerSent {
121 w.WriteHeader(http.StatusOK)
122 }
123
124 if w.buffer.Len() > 0 {
125 w.sendChunk(w.buffer.Bytes())
126 w.buffer.Reset()
127 }
128 return nil
129}

Callers 1

VDomUrlRequestCommandMethod · 0.95

Calls 4

WriteHeaderMethod · 0.95
sendChunkMethod · 0.95
LenMethod · 0.80
BytesMethod · 0.80

Tested by

no test coverage detected