MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / WriteContentType

Method WriteContentType

common/custom-event.go:75–82  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

73}
74
75func (r CustomEvent) WriteContentType(w http.ResponseWriter) {
76 header := w.Header()
77 header["Content-Type"] = contentType
78
79 if _, exist := header["Cache-Control"]; !exist {
80 header["Cache-Control"] = noCache
81 }
82}

Callers 1

RenderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected