MCPcopy
hub / github.com/mudler/LocalAI / Flush

Method Flush

core/http/middleware/node_header_test.go:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (o *orderedWriter) Flush() {
39 o.events = append(o.events, "flush:node="+o.Header().Get(NodeHeaderName))
40 if f, ok := o.ResponseWriter.(http.Flusher); ok {
41 f.Flush()
42 }
43}
44
45var _ = Describe("ExposeNodeHeader middleware", func() {
46 const (

Callers 1

Calls 2

HeaderMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected