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

Method Write

core/http/middleware/node_header_integration_test.go:98–101  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

96}
97
98func (o *orderRecorder) Write(b []byte) (int, error) {
99 o.record(fmt.Sprintf("write:node=%s", o.Header().Get(middleware.NodeHeaderName)))
100 return o.ResponseWriter.Write(b)
101}
102
103func (o *orderRecorder) Flush() {
104 o.record(fmt.Sprintf("flush:node=%s", o.Header().Get(middleware.NodeHeaderName)))

Callers 1

Calls 3

recordMethod · 0.95
HeaderMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected