MCPcopy
hub / github.com/tinode/chat / servePprofError

Function servePprofError

server/http_pprof.go:47–53  ·  view source on GitHub ↗
(wrt http.ResponseWriter, status int, txt string)

Source from the content-addressed store, hash-verified

45}
46
47func servePprofError(wrt http.ResponseWriter, status int, txt string) {
48 wrt.Header().Set("Content-Type", "text/plain; charset=utf-8")
49 wrt.Header().Set("X-Go-Pprof", "1")
50 wrt.Header().Del("Content-Disposition")
51 wrt.WriteHeader(status)
52 fmt.Fprintln(wrt, txt)
53}

Callers 1

profileHandlerFunction · 0.85

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…