MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / addHeaders

Function addHeaders

pkg/schema/schema.go:33–38  ·  view source on GitHub ↗
(next http.Handler)

Source from the content-addressed store, hash-verified

31}
32
33func addHeaders(next http.Handler) http.Handler {
34 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
35 w.Header().Add("Content-Type", "application/schema+json")
36 next.ServeHTTP(w, r)
37 })
38}
39
40type JsonDir struct {
41 d http.Dir

Callers 1

GetSchemaHandlerFunction · 0.85

Calls 1

HeaderMethod · 0.45

Tested by

no test coverage detected