MCPcopy Index your code
hub / github.com/zalando/skipper / dbgResponse

Function dbgResponse

proxy/debug.go:124–133  ·  view source on GitHub ↗
(w http.ResponseWriter, d *debugInfo)

Source from the content-addressed store, hash-verified

122}
123
124func dbgResponse(w http.ResponseWriter, d *debugInfo) {
125 w.Header().Set("Content-Type", "application/json")
126
127 doc := convertDebugInfo(d)
128 enc := json.NewEncoder(w)
129
130 if err := enc.Encode(&doc); err != nil {
131 log.Error("[debug response]", err)
132 }
133}

Callers 2

serveResponseMethod · 0.85
errorResponseMethod · 0.85

Calls 4

convertDebugInfoFunction · 0.85
SetMethod · 0.65
ErrorMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…