MCPcopy Index your code
hub / github.com/coder/coder / serveHTTPDebug

Method serveHTTPDebug

tailnet/coordinator.go:533–542  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

531}
532
533func (c *core) serveHTTPDebug(w http.ResponseWriter, _ *http.Request) {
534 debug := c.getHTMLDebug()
535 w.Header().Set("Content-Type", "text/html; charset=utf-8")
536 err := debugTempl.Execute(w, debug)
537 if err != nil {
538 w.WriteHeader(http.StatusInternalServerError)
539 _, _ = w.Write([]byte(err.Error()))
540 return
541 }
542}
543
544func (c *core) getHTMLDebug() HTMLDebug {
545 c.mutex.RLock()

Callers 1

ServeHTTPDebugMethod · 0.80

Calls 7

getHTMLDebugMethod · 0.95
SetMethod · 0.65
ExecuteMethod · 0.65
WriteMethod · 0.65
HeaderMethod · 0.45
WriteHeaderMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected