MCPcopy Index your code
hub / github.com/openfaas/faasd / httpHeaderMiddleware

Function httpHeaderMiddleware

cmd/provider.go:167–172  ·  view source on GitHub ↗
(next http.HandlerFunc)

Source from the content-addressed store, hash-verified

165}
166
167func httpHeaderMiddleware(next http.HandlerFunc) http.HandlerFunc {
168 return func(w http.ResponseWriter, r *http.Request) {
169 w.Header().Set("X-OpenFaaS-EULA", "openfaas-ce")
170 next.ServeHTTP(w, r)
171 }
172}

Callers 1

runProviderEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected