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

Method WriteHeader

core/services/cloudproxy/mitm/handler.go:366–369  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

364}
365
366func (w *countingResponseWriter) WriteHeader(code int) {
367 w.status = code
368 w.ResponseWriter.WriteHeader(code)
369}
370
371func (w *countingResponseWriter) Flush() {
372 if f, ok := w.ResponseWriter.(http.Flusher); ok {

Callers 2

serveMethod · 0.45
writePIIBlockedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected