(w http.ResponseWriter, _ *http.Request)
| 531 | } |
| 532 | |
| 533 | func (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 | |
| 544 | func (c *core) getHTMLDebug() HTMLDebug { |
| 545 | c.mutex.RLock() |
no test coverage detected