(slug string, handler http.Handler)
| 99 | } |
| 100 | |
| 101 | func (d *DebugHandler) handle(slug string, handler http.Handler) string { |
| 102 | href := "/debug/" + slug |
| 103 | d.mux.Handle(href, Protected(debugBrowserHeaderHandler(handler))) |
| 104 | return href |
| 105 | } |
| 106 | |
| 107 | // Handle registers handler at /debug/<slug> and adds a link to it |
| 108 | // on /debug/ with the provided description. |
no test coverage detected