MCPcopy Create free account
hub / github.com/zalando/skipper / convertBody

Function convertBody

proxy/debug.go:61–73  ·  view source on GitHub ↗
(body io.Reader)

Source from the content-addressed store, hash-verified

59}
60
61func convertBody(body io.Reader) (string, string) {
62 b, err := io.ReadAll(body)
63 out := string(b)
64
65 var errstr string
66 if err == nil {
67 errstr = ""
68 } else {
69 errstr = err.Error()
70 }
71
72 return out, errstr
73}
74
75func convertDebugInfo(d *debugInfo) debugDocument {
76 doc := debugDocument{}

Callers 1

convertDebugInfoFunction · 0.85

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…