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

Method Flush

core/http/middleware/node_header_integration_test.go:103–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (o *orderRecorder) Flush() {
104 o.record(fmt.Sprintf("flush:node=%s", o.Header().Get(middleware.NodeHeaderName)))
105 if f, ok := o.ResponseWriter.(http.Flusher); ok {
106 f.Flush()
107 }
108}
109
110var _ = Describe("ExposeNodeHeader middleware (route-level integration)", func() {
111 const fakeNodeID = "node-route-7"

Callers 1

Calls 3

recordMethod · 0.95
HeaderMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected