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

Method WriteHeader

core/http/middleware/node_header.go:48–51  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

46}
47
48func (w *nodeHeaderWriter) WriteHeader(code int) {
49 w.maybeSet()
50 w.ResponseWriter.WriteHeader(code)
51}
52
53// Flush keeps SSE handlers working: Echo's Response.Flush goes through
54// http.NewResponseController which walks Unwrap() chains and invokes Flush

Callers 15

fakeOpenAIUpstreamFunction · 0.45
fakeAnthropicUpstreamFunction · 0.45
usage_test.goFile · 0.45
streamTranscriptionFunction · 0.45
FineTuneProgressEndpointFunction · 0.45

Calls 1

maybeSetMethod · 0.95

Tested by 9

fakeOpenAIUpstreamFunction · 0.36
fakeAnthropicUpstreamFunction · 0.36
chatTestServerFunction · 0.36
writeTarArchiveFunction · 0.36
fakeBackendFunction · 0.36
serveMethod · 0.36
serveMethod · 0.36